[Date Prev][Date Next][Thread Prev][][Date Index][Thread Index]

cookies dropped



Here is a problem that happens in emacs-w3m but works fine in w3m.

The problem is that cookies are all dropped in this case...

GET /wp/wp-login.php HTTP/1.0
User-Agent: Emacs-w3m/1.4.513 w3m/0.5.3+cvs-1.1055
Host: www.bdsm.com.tw

HTTP/1.1 200 OK
Connection: close
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/
Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/wp/
X-Frame-Options: SAMEORIGIN

OK... now why aren't those cookies attached to this:

POST /wp/wp-login.php HTTP/1.0
User-Agent: Emacs-w3m/1.4.513 w3m/0.5.3+cvs-1.1055
Host: www.bdsm.com.tw
Referer: http://www.bdsm.com.tw/wp/wp-login.php

log=....

Please check the above interaction. You don't need an account to test
it. Just fill in any name and password. You can even disconnect your
computer before sending it. I used tcpflow(1) to record it.  All I
know is w3m allowed me to login, but emacs-w3m didn't remember the
cookies below:

HTTP/1.1 302 Found
Connection: close
Expires: Wed, 11 Jan 1984 05:00:00 GMT
Cache-Control: no-cache, must-revalidate, max-age=0
Pragma: no-cache
Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/
Set-Cookie: wordpress_test_cookie=WP+Cookie+check; path=/wp/
X-Frame-Options: SAMEORIGIN
Set-Cookie: wordpress_e4...a; expires=Fri, 10-May-2013 00:56:53 GMT; path=/wp/wp-content/plugins; httponly
etc. etc.
Location: http://www.bdsm.com.tw

GET / HTTP/1.0
User-Agent: Emacs-w3m/1.4.513 w3m/0.5.3+cvs-1.1055
Host: www.bdsm.com.tw
Referer: http://www.bdsm.com.tw/wp/wp-login.php

*No cookies attached*! Why?