benibela / xidel

Command line tool to download and extract data from HTML/XML pages or JSON-APIs, using CSS, XPath 3.0, XQuery 3.0, JSONiq or pattern matching. It can also create new or transformed XML/HTML/JSON documents.
http://www.videlibri.de/xidel.html
GNU General Public License v3.0
681 stars 42 forks source link

Cookies not preserved across redirects #23

Closed buckett closed 6 years ago

buckett commented 6 years ago

I'm loading a HTML page from disk and having xidel submit the form in the page. This form generates a HTTP POST against a server which returns a HTTP 302 redirect and a Set-Cookie header. xidel is following this redirect but is not sending the cookie it received on the redirect response.

benibela commented 6 years ago

What are the domains/paths? It is trying hard to only send cookies to the page that has set them

buckett commented 6 years ago

Yep, it's all working fine, it was an error on my end. Sorry for the bad report.