MugunthKumar/MKNetworkKit — Issue #52: Post params not being sent with data if not on WiFI
Author: bendodson
Created: 2012-02-09 10:52:04+00:00
State: open

This one has had me stumped for a little while. I have an MKNetworkOperation that is set to POST with an NSDictionary of parameters. Once that's been created, I use addData:ForKey: to add some raw UIImage data to the post as I'm uploading an image. On WiFi this works perfectly, but on anything else the POST parameters aren't being sent (which means my API denies it as an authentication key is being sent).

I've tried to have a look at working out why this should work on WiFi but not 3G and not got anywhere with it.