Jump to content

Problem with PUT method


Recommended Posts

I use  PrestyShop 1.7, and I have problem with PUT method, witch referring to API. GET and POST methods works properly, but when I try send PUT request I always get this error:

<H1>400 Bad Request</H1>
    Your browser sent a request that this server could not understand.

I try add  quantity to some product, to adres /api/stock_availables/id. XML which I try to send, looks like this:

<?xml version="1.0" encoding="UTF-8"?>

Every other PUT query to other addreses answered the same error. What could be a problem? The xmxl format? If yes how should looks corect xml? I tried lot of things but nothing helped ;( If anyone know how can I  fix this problem?

Any help would be greatly appreciated.


Share this post

Link to post
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More