I have two web-services
https://localhost/svc/auth which I call first with Authorization headers and I get a cookie
https://localhost/svc/catalog/1234 which I call by providing the cookie set by the 1st call
I am trying to use cURL like this to get the catalog "1234":
curl -u Username:Password -s -i -X GET 'http://localhost/svc/auth' -c /tmp/site-cookie.txt curl -b /tmp/site-cookie.txt -s -i -X GET 'http://localhost/svc/article-stock/v1/car/CRH4203052?sid=esi&channel=str&site=0148'
But this does not work as it seems the cookie have the path set like this:
# Netscape HTTP Cookie File # http://curl.haxx.se/rfc/cookie_spec.html # This file was generated by libcurl! Edit at your own risk. localhost FALSE /svc/auth FALSE 0 MYCOOKIE VXNlcm5hbWU6RU5DKFFva0VSaDdaMXpKTHRYRHJIUzlvaXVuakVpbURHYmsyaDFRUXlvclA4RD0p
I know I can ask the web-service developer to change the path in its cookie, but I wanted to know if cURL can ignore such path or not to save it?