Re: [Httplib2-discuss] Optional non-'redirect following'
Status: Beta
Brought to you by:
jcgregorio
From: Rene S. <re...@pt...> - 2007-05-03 17:16:55
|
Right, not setting the header is the way to go. My proxy simply reused headers it got from the browser, so normally, I would have to remove 'head : some.target.site' .. except that now, I can turn redirects of :-), and this becomes a non-issue! Thanks for you support, René > Is there a particular reason you are manually setting the > Host: header? Httplib2 does that for you automatically > by pulling it out of the request URI. > > In general, I like to allow the user to set any header > and have that override the default behavior, following > the basic principle that the user knows best, but I'm open > to the idea that that principle might break down > on redirects. > > Thanks, > -joe > |