MarcosGrzeca Posted August 8, 2013 Share Posted August 8, 2013 Hi, We are trying to recive a customer list via WebService in PrestaShop 1.5.4 and the folowing error message is returned: This call to PrestaShop Web Services returned an unexpected HTTP status of:302 I have made several tests, including the suplied code available on git (https://codeload.github.com/PrestaShop/PrestaShop-webservice-lib/zip/master) and the result is always the same. This issue occurs only in version 1.5, while it is working with no problems in the previous versions. Details of the request: HTTP REQUEST HEADER GET /pack20/api/customers HTTP/1.1 Authorization: Basic N0EwUkkwMDBYM0YzSkZXVUhDWjFDSExDQzIyQUxMVVc6 Host: www.pack4pet.com.br Accept: */* HTTP RESPONSE HEADER HTTP/1.1 302 Moved Temporarily Date: Thu, 08 Aug 2013 13:38:35 GMT Server: Apache location: http://pack4pet.com.br/pack20/api/customers?url=customers Content-Length: 0 Content-Type: text/html; charset=utf-8 RETURN HTTP BODY 302 Link to comment Share on other sites More sharing options...
RogueWaveLimited Posted August 9, 2013 Share Posted August 9, 2013 Try a url like this from a browser: <apikey>@www.pack4pet.com.br/pack20/api/ Does this give you a list of available resources? 1 Link to comment Share on other sites More sharing options...
MarcosGrzeca Posted August 9, 2013 Author Share Posted August 9, 2013 Nice! We have found the problem now. It works only without www at domain. Regards Link to comment Share on other sites More sharing options...
Recommended Posts