I want to send String Data to a php server using the ASIHTTPRequest appendPostData method but its not working.
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request appendPostData:[@"123456" dataUsingEncoding:NSUTF8StringEncoding]];
[request startAsynchronous];
I tried some modifications on the request itself like:
[request setRequestMethod:@"POST"];
[request buildPostBody];
but also this does not work.
When i use the
[request addPostValue:@"Ben" forKey:@"names"];
syntax it does work.
Anybody has an idea whats wrong here?!