Faqts : Business : Programming : Shopping For You : Python

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

3 of 17 people (18%) answered Yes
Recently 1 of 10 people (10%) answered Yes

Entry

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

Dec 18th, 2009 22:43
helmy mohameed, Scott Mandarich, Shopping Snooper, adel85 adel85, osama said, Joe Bloggs, raj sandia, jack seo, 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'

The above example is using MIME MESSAGE class. Please check the 
spelling of HTTP_REFERRER in the specs.











http://music.abovethelaw.info/ Music
http://musicalinstruments.abovethelaw.info/ Musical Instruments
http://mutualfunds.abovethelaw.info/ Mutual Funds
http://nailsalons.abovethelaw.info/ Nail Salons
http://newspapers.abovethelaw.info/ Newspapers
http://www.uanddat.info/