I need to pass some data in order for the server to the save the info,in order to do this the parameters need to pass the parameters in XML nodes following a url http://ift.tt/1E8AZa9
Here is an example of the XML node structure
<Send_info>
<Service_order>
</Service_order>
<Data_stream>
<info>
</info>
</Data_stream>
</Send_info>.
The return value would be a JSON string with {"Uploaded":"TRUE"} or {"Uploaded":"FALSE"} respectively.
I have tried this method with no answer it just return nil.
-(void)Request:(NSData*)data{
NSURL *aUrl = [NSURL URLWithString:@"http://ift.tt/1E8AZa9"];
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:aUrl
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:60.0];
[request setHTTPMethod:@"GET"];
[request setHTTPBody:data];
NSURLConnection *connection= [[NSURLConnection alloc] initWithRequest:request delegate:self];
[connection start];
}
No comments:
Post a Comment