Quantcast
Channel: Cocos Forums - Latest topics
Viewing all articles
Browse latest Browse all 17070

HttpRequest with PUT method

$
0
0

@yonggeon wrote:

I am using HttpRequest for REST API of Parse on iOS
So I need to use PUT method
But when I used PUT method the Content-Type is changed forcibly to "application/x-www-form-urlencoded"
HttpClient-apple.mm source code has below code

if ([requestType isEqual: @"PUT"])
{
[nsrequest setValue: @"application/x-www-form-urlencoded" forHTTPHeaderField: @"Content-Type"];
}

I don't understand why
Parse REST API needs PUT method with "Content-Type: application/json"
How can I solve this?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 17070

Trending Articles