Is the Content-Type Header Correct?
Reported by David Clements | May 7th, 2009 @ 05:34 PM
I just ran into an issue where my newly created RightScale server with Apache was failing on all Request from Objective Resource.
I tracked it down to the setting of the Content-Type header in
+(NSMutableURLRequest ) requestWithUrl:(NSURL )url andMethod:(NSString*)method {
.....
[request setValue:@"application/xml"
forHTTPHeaderField:@"Content-Type"];
It seems that Content-Type is meant to indicate the type of data being sent. If you test from a browser you will see that no Content-Type headers are sent for GET request.
http://www.w3.org/Protocols/rfc2...
Commenting it out has me working again.
No comments found
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
Port of Rails' ActiveResource framework to the iPhone.