I'm getting JSON from the web pages

Sylwester121
New Community Member

Since I use a service that returns XML, but will return JSON if it has a higher quantity my accept-header look like this

text/html;q=0.9,application/xhtml+xml;q=0.8,application/json;q=0.7,application/xml;q=0.6,/;q=0.5

When i access paypal.com now I ONLY get JSON. This is an error since this header clearly prefers text/html and application/xhtml before application/json. If I remove application/json I get HTML and this shouldn't happen.  My only conclusion is that paypal.com is broken. 

 

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.