Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 11-18-2008, 06:42 PM   #9 (permalink)
lastiko
New Member
 
Join Date: Nov 2008
Posts: 7
Default

ok now the iphone was connected when i press the button :

Code:
-(IBAction)Envoie{
	
	unsigned char aBuffer[20];
	NSString *myString = @"Test string.";
	const char *utfString = [myString UTF8String];
	NSData *myData = [NSData dataWithBytes: utfString length: strlen(utfString)];
	[myData getBytes:aBuffer];
	NSURL * HPurl = [NSURL URLWithString:@"http://192.168.0.9:81"];
	if([myData writeToURL:HPurl atomically:true]);	
}

but the data receive from 192.168.0.9 was

(0000942670) CONNECT
(0000942673) Iphone envoie : PUT / HTTP/1.0
User-Agent: Write_to_URL/1.0 CFNetwork/339.5 Darwin/9.5.0 (i386) (MacBookPro1,2)
Content-Length: 0


but i didn't send "PUT / HTTP/1.0
User-Agent: Write_to_URL/1.0 CFNetwork/339.5 Darwin/9.5.0 (i386) (MacBookPro1,2)"



and there is an other problem when i press the envoie button , he stay i blue

somebody can help me ?

thanks

Last edited by lastiko; 11-18-2008 at 06:46 PM.
lastiko is offline   Reply With Quote
 

» Advertisements
» Online Users: 742
20 members and 722 guests
cbrauchli, ChenXin, chits12345, gc2010, Grace.H, gurumoorthy, ilmman, JamesCahall, kaileymo123, Lanka001, Leoknico, mapiko, mikeporras, Moe2392, MozyMac, nidie, rrlemoine, supasounds, xlc
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,813
Threads: 89,206
Posts: 380,630
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Leoknico
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 01:52 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.