[Twisted-Python] Problem fetching page with getPage

2010-01-02 Thread Terry Jones
I've run into a problem fetching an HTTP page with t.w.client.getPage. It's not simple to make standalone code showing what's going wrong, but the following summarizes where I am and why I find this puzzling. After some setup, I have some a url path, and some headers I want to send. A summary:

Re: [Twisted-Python] Problem fetching page with getPage

2010-01-02 Thread sstein...@gmail.com
On Jan 2, 2010, at 9:34 AM, Terry Jones wrote: > In any case, it looks like the problem is not in the setup of the request. > Can anyone offer a reason why httplib might be able to fetch the page > whereas getPage receives an error? I'm stumped. I've had to debug things like this recently and I

[Twisted-Python] Fwd: Problem fetching page with getPage

2010-01-02 Thread sstein...@gmail.com
Sorry... >> I had a situation where python's HTTPlib stuff was adding an Accept Encoding >> header >> that didn't put there, that I didn't put there, ___ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/

Re: [Twisted-Python] Problem fetching page with getPage

2010-01-02 Thread Andreas Kostyrka
Am Samstag, den 02.01.2010, 10:03 -0500 schrieb sstein...@gmail.com: > On Jan 2, 2010, at 9:34 AM, Terry Jones wrote: > > In any case, it looks like the problem is not in the setup of the request. > > Can anyone offer a reason why httplib might be able to fetch the page > > whereas getPage receives

Re: [Twisted-Python] Problem fetching page with getPage

2010-01-02 Thread Glyph Lefkowitz
On Jan 2, 2010, at 9:34 AM, Terry Jones wrote: > In any case, it looks like the problem is not in the setup of the request. > Can anyone offer a reason why httplib might be able to fetch the page > whereas getPage receives an error? I'm stumped. Well, I know this isn't terribly helpful, but "a

Re: [Twisted-Python] Problem fetching page with getPage

2010-01-02 Thread Terry Jones
> "Steve" == sstein...@gmail com writes: Steve> On Jan 2, 2010, at 9:34 AM, Terry Jones wrote: >> In any case, it looks like the problem is not in the setup of the request. >> Can anyone offer a reason why httplib might be able to fetch the page >> whereas getPage receives an error? I'm stump

Re: [Twisted-Python] Problem fetching page with getPage

2010-01-02 Thread Glyph Lefkowitz
On Jan 2, 2010, at 4:14 PM, Terry Jones wrote: > Thanks for the helpful reply - I can now make the call successfully. The > difference turned out to be that httplib puts a Host: hostname:port header > into its calls, whereas getPage uses just Host: hostname. Plus there was > something else going

Re: [Twisted-Python] Problem fetching page with getPage

2010-01-02 Thread Terry Jones
Hi Glyph Thanks for the reply. I just sent another mail in the thread. > "Glyph" == Glyph Lefkowitz writes: Glyph> Well, I know this isn't terribly helpful, but "a bug in getPage" is Glyph> really the only thing that comes to mind. Or, some Glyph> legal-but-unusual behavior in getPage which

Re: [Twisted-Python] Problem fetching page with getPage

2010-01-02 Thread Terry Jones
> "Glyph" == Glyph Lefkowitz writes: Glyph> I'm glad that you tracked this down! Me too. Glyph> According to comments on , Glyph> this problem was addressed in the new HTTP client implementation. Glyph> Have you considered using the new twisted.web.

[Twisted-Python] Weekly Bug Summary

2010-01-02 Thread exarkun
Bug summary __ Summary for 2009-12-27 through 2010-01-03 Bugs opened: 5Bugs closed: 8 Total open bugs: 1218 (-3) |== Type Changes |== Priority Changes |== Component Changes |Defect: -4 |High:+1 |Core:+1 |Enhancement: +0 |Nor