Closed MGDSoft closed 10 years ago
Hi @MGDSoft,
thanks for getting in touch!
I'd suggest you to have a look at the execute-method of one of our (base classes used for building our API clients)[https://github.com/escapestudios/EscapeAPIClientBundle/blob/master/REST/Request.php] and furthermore at the RequestCore-library either (here)[https://github.com/pzb/requestcore] or (here)[https://github.com/amazonwebservices/aws-sdk-for-php/tree/master/lib/requestcore] for the cURL side of things.
Also: have a look at your log file to see what is going on exactly - the redirect seems to suggest your application is redirecting the request, as this is not something the WSSE Authentication-bundle would be doing...
Hope this helps, let me know how it goes!
Kind regards, David
Thanks @djoos . I will look https://github.com/escapestudios/EscapeAPIClientBundle/blob/master/REST/Request.php
And again thanks for your great job and your patience ! :smiley:
Hi @MGDSoft,
even though this one is closed, do let me know via a comment how you get on with the issue you're having - hope you'll be up and running soon!
Have a great day, David
Finally this works!!
The problem was because of nelmio bundle, I dont know why but it has a redirect and using stateless header didnt send. If I use a normal url /api/v1/default.json works propertly :(. I dont know how postman was working.
Thanks!
I'm glad you got to the bottom of the redirect, thanks for your feedback @MGDSoft!
Hi @djoos , I have this easy code
but i get this
In postman it works perfectly but by curl it doesn`t. Sorry for this dummy question :_