I am making a GET request for JSON data from a server that requires custom headers. The server responds with accurate response codes when I add the authentication header but fails during the custom header.
This -
[request addValue:utcDate forHTTPHeaderField:@"X-Custom-Date"];
causes the request to not receive a response from the server.
I can add the identical headers in a curl command and get a response so it is something particular to the NSMutableURLRequest class.
Has anyone encounter this issue?
utcDate? A string? Have you checked what is actually sent? Server log?tcpdumpon the command line to confirm that what you're sending is what you expect, and to see if you get any response from the server or not.