Answer the question
In order to leave comments, you need to log in
Difference in cookie handling between wget and curl. wtf?
These commands produce different results:
wget --load-cookies=cookies.txt www.example.com
curl -b cookies.txt www.example.com
Wget is fine. Curl throws a 403 error. The problem is that I need to POST, but wget doesn't support multipart/form-data. Therefore, you need to use curl.
How to get around the problem and why is this happening?
Answer the question
In order to leave comments, you need to log in
Maybe UserAgent?
Also tried saving cookies from locally installed phpMyAdmin. The line in the file saved by wget looks like this:
127.0.0.1 FALSE /pma/ FALSE 1294809105 pma_theme original
#HttpOnly_127.0.0.1 FALSE /pma/ FALSE 1294809043 pma_theme original
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question