Hello, Im trying to do this for uploading an image into a product in Prestashop: ...
... But always I got an HTTP 1.1 401 Error. Server:Nginx In my old VPS was working good,just Apache, but now not. I think is something related with Nginx server, which is not allowing this kind of request. Any idea? Thanks asked 31 Jul '14, 01:57 manu7691 |
Finally the problem wasnt Nginx, was related with CGI Apache. I applied this solution and now it is working : http://planetozh.com/blog/2009/04/http-authentication-on-php-as-cgi-like-dreamhost/ answered 03 Aug '14, 23:38 manu7691 |
401 means that the URL to which you're trying to post requires authentication credentials that you either are not providing, or are not providing in the correct manner. First, verify that the credentials that you provding in If they are, then try adding either of the following lines before your
or
answered 31 Jul '14, 19:41 seanf I'm providing the key in $key. As I tell before, in Apache server was working so i dont know what is the problem with Nginx server.
(31 Jul '14, 21:06)
manu7691
Ok, I've updated my answer with more info.
(31 Jul '14, 21:16)
seanf
I tried it and still the same error :S
(01 Aug '14, 11:01)
manu7691
I'm starting to think you're simply passing the wrong credentials.
If that doesn't work, then I suggest that you open a support ticket and give us the exact details and steps we would need to reproduce the problem, and we'll try to assist that way.
(01 Aug '14, 15:11)
seanf
|