Jump to content

[Bug] Cannot Update Anything Via Webservice


bartoszgrabski

Recommended Posts

Hello,

 

We're using Prestashop 1.6.0.14, PHP 5.2.17 on both servers.

 

I tested creating and updating items using PSWebServiceLibrary.php. On local development copy everything works fine, but the production server allows for creation of different objects, but any update returns 400 Bad Request.

 

Please find a sample output of example scripts below:

 

HTTP REQUEST HEADER
PUT /.../api/customers/7 HTTP/1.1
Authorization: Basic ............
Host: ..............
Accept: */*
Content-Length: 1353
Content-Type: application/x-www-form-urlencoded
 
HTTP RESPONSE HEADER
HTTP/1.1 400 Bad Request
Date: Tue, 12 Jan 2016 14:54:30 GMT
Content-Type: text/html
Content-Length: 191
Connection: keep-alive
Access-Control-Allow-Origin: *
Server: IdeaWebServer/v0.80
 
XML SENT
<?xml version="1.0" encoding="UTF-8"?>
<prestashop xmlns:xlink="http://www.w3.org/1999/xlink">
<customer>
...

RETURN HTTP BODY
<HTML>
<HEAD>
	<TITLE>400 Bad Request</TITLE>
</HEAD>
<BODY BGCOLOR=#FFFFFF>
	<H1>400 Bad Request</H1>
	Your browser sent a request that this server could not understand.
</BODY>
</HTML>
  

Bartek

Link to comment
Share on other sites

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...