NSMutableURLRequest *request = [[[NSMutableURLRequest alloc] initWithURL:[NSURL URLWithString:tempURL]] autorelease];
[request setValue:encryptedValue forHTTPHeaderField:@"EncString"];
I could spot all other headers in the request but this specific header is missing, can any one let me know what could be the reasons.
I have tried the following code:
The output is:
which looks good. There is no reason to suspect the code you provided is responsible for the issue. Maybe you should check one of the following:
encryptedValuetruly a valid object to be placed into header (is string, not too long, no very special characters)NSLog(@"%p", request);returns same result)NSMutableURLRequestand override relevant methods to track what is going on)If none of these work create a post with additional details on what you have done, where are you checking these headers and "could spot all other headers".