[Zope] HTTP status code 302
Steve Spicklemire
steve@spvi.com
Sun, 10 Dec 2000 17:27:51 -0500 (EST)
Hi Hung,
No! Urllib does that too!
import urllib
x = urllib.urlopen('http://user:pass@host:8080/path/to/get')
print x.read()
-steve
>>>>> "Hung" == Hung Jung Lu <hungjunglu@hotmail.com> writes:
Hung> From: "Steve Spicklemire" <steve@spvi.com>
>> Did you set a 'Host' header in your request? Is the request
>> going straight to ZServer, or through Apache? (Also... do you
>> have a SiteRoot?) These can all affect how the request is
>> handled by the server...
Hung> Ahh... that's it. Thank you very much!! Virtual hosting was
Hung> the problem. After supplying the 'Host' header, everything
Hung> was fine.
Hung> The httplib offers more control, I think. It allows me to
Hung> supply the 'Authorization' header. The urllib probably does
Hung> not do that, right?
Hung> That being said, I am still not 100% familiar with all the
Hung> HTTP headers (for both request and response), it's like I
Hung> learn one at a time. :) Do you know any pointer where I can
Hung> get info on all the headers?
Hung> regards,
Hung> Hung Jung
Hung> _______________________________________________ Zope
Hung> maillist - Zope@zope.org
Hung> http://lists.zope.org/mailman/listinfo/zope ** No cross
Hung> posts or HTML encoding! ** (Related lists -
Hung> http://lists.zope.org/mailman/listinfo/zope-announce
Hung> http://lists.zope.org/mailman/listinfo/zope-dev )