[twill] Referer not updating?

Tommi Virtanen tv+list.twill at tv.debian.net
Wed Aug 15 16:33:42 PDT 2007


Hi. The following patch, recently added to the darcs repo, breaks
Referer headers when POSTing forms:

Mon Jun  4 10:54:22 EEST 2007  titus at idyll.org
  * updated mechanize to latest

For a demonstration of this, see the following requests, logged by my
server-side app. Format is request, status, referer. Note how it keeps
the same referer even after a code 200 page -- sure the /add should
get a referer of /search/

"GET / HTTP/1.1" 200 "-"
"POST /freeform_post!!go HTTP/1.1" 302 "http://localhost:38980/"
"GET /ou%3DPeople%2Cdc%3Dexample%2Cdc%3Dcom HTTP/1.1" 302 "http://localhost:38980/freeform_post!!go"
"GET /ou%3DPeople%2Cdc%3Dexample%2Cdc%3Dcom/ HTTP/1.1" 302 "http://localhost:38980/freeform_post!!go"
"GET /ou%3DPeople%2Cdc%3Dexample%2Cdc%3Dcom/search HTTP/1.1" 302
+"http://localhost:38980/freeform_post!!go"
"GET /ou%3DPeople%2Cdc%3Dexample%2Cdc%3Dcom/search/ HTTP/1.1" 200
+"http://localhost:38980/freeform_post!!go"
"GET /ou%3DPeople%2Cdc%3Dexample%2Cdc%3Dcom/add HTTP/1.1" 200
+"http://localhost:38980/freeform_post!!go"

-- 
:(){ :|:&};:



More information about the twill mailing list