Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I am testing a web service that returns json

But it gives 404 error if

Content-Type - application/json in header

but it works when

Content-Type - application/x-www-form-urlencoded; charset=UTF-8

Is it ok to use default Content-Type - application/x-www-form-urlencoded; charset=UTF-8?

Thanks
Posted
Comments
Mohibur Rashid 29-Apr-14 20:49pm    
I am not sure whether you are describing your problem properly or not. 404 error code is related with page not found. It has nothing to do with your content type. Where are you putting your content type? Is it it html header or http header? It would be helpful if you post your code.

1 solution

whats the issue with what you r trying is it ?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900