derenyi Posted October 22, 2015 Share Posted October 22, 2015 (edited) Hello, The problem is: I am trying to use Presta's WebService, by sending url requests programatically, using WinHttpRequest. I use PS1.6, I configured what I had to in BO, if I type this url into a browser, everything works fine: http://[email protected]/api/ But when I try it using WinHttpRequest, the answer is: "401 Unauthorized" It is obviously so, because Presta prompts me for user password, as it is written in the developer's documentation: http://doc.prestashop.com/display/PS16/Chapter+2+-+Discovery+-+Testing+your+access+to+the+web+service+with+the+browser "The shop should prompt you for a username and a password to enter" I just can't figure out, how to get around this problem. (Actually, I do not really see why Presta prompts me again for the authentication key, which is already in the url?) Any suggestion would be really appreciated! Thank you, bye, Istvan Edited October 22, 2015 by derenyi (see edit history) 1 Link to comment Share on other sites More sharing options...
cowboyGeek Posted December 18, 2015 Share Posted December 18, 2015 I have the same question. Link to comment Share on other sites More sharing options...
derenyi Posted December 18, 2015 Author Share Posted December 18, 2015 Hello cowboyGeek! The solution is: http://teszt.diaper.hu/api&ws_key=xyzpasskey I think the documentation is simply erroneous with that. (If you use just http://teszt.diaper.hu/api instead of http://[email protected]/api/ (as the documentation suggests), the result is the same) bye, Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now