Home     My Faqts     Contributors     About     Help    

faqts : Computers : Programming : Languages : Python

FAQTs repaired & updated!
Thanks for your patience...
Entry Add Entry Alert - Edit this Entry

Did You Find This Entry Useful?

2 of 3 people (67%) answered Yes
Recently 2 of 3 people (67%) answered Yes

How do you send a HTTP_REFERER using urllib or any other similar module? Is it even possible?

Jan 12th, 2004 17:11

Khurram Ijaz, James c359


Hi,
HTTP_REFERER is simply a header. You can simply add a header 
HTTP_REFERER in the outgoing headers.
MSG['HTTP_REFERER'] = 'http://www.renai-soft.com/index.html'
The above example is using MIME MESSAGE class. Please check the 
spelling of HTTP_REFERRER in the specs.



© 1999-2004 Synop Pty Ltd