views:

79

answers:

1

Hi there,

When making the following HTTP POST request:

  NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url];
  [request setHTTPMethod:@"POST"];
  NSURLResponse     *urlResponse = nil; 
  NSError    *error = nil; 

  // execute
  NSData *responseData = [NSURLConnection sendSynchronousRequest:request returningResponse:&urlResponse error:&error]; 
  if(responseData)
  {
        //blah
  }

I get back a valid response when connected via WiFi, but not when connected over 3G. The responseData object doesn't even get made (0x0) when coming back over 3G.

I get kCFErrorDomainCFNetwork error 303.

The response ought to be 242k of JSON.

Any help would be greatly appreciated.

Thanks.

A: 

It seemed that the problem was between the back end system and the mobile networks. Changing the header information to text format only solved the issue.

happy pig