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