Recently I found I could not access the URLs in my Trac env using urllib (Python stdlib ... ;) ...
I posted a ticket [1]_ to python.org since I considered it was a bug in urllib ... but tracd seems to be responsible for this behavior ... I do not know whether I have to repost this issue to the Trac team so that trac-devs be aware of it, or I have to do anything else ... the fact is that this can prevent other apps (... like the one I am coding right now ...) to retrieve wiki pages and so on if using tracd ... :( I attach Antoine Pitrou's opinion ... ---------- Forwarded message ---------- From: Olemis Lang <rep...@bugs.python.org> Date: Tue, Jan 27, 2009 at 10:11 AM Subject: [issue5072] urllib.open sends full URL after GET command instead of local path To: ole...@gmail.com Olemis Lang <ole...@gmail.com> added the comment: > Quoting Antoine Pitrou ... > I suppose 172.18.2.7:3128 is the address:port of the your proxy, right? Yes ... > In which case, urllib seems to do the right thing. When talking to an HTTP proxy, requests are of the form "GET http://site.com/path", rather than "GET /path". It's up to the proxy to strip the host part of the URL when forwarding the request to the target server. This being said ... > (but I suppose tracd could also be more permissive and allow the "GET http://site.com/path" variant. It seems Apache does) ... It works with Apache (I am talking about trac once again ...) therefore I will report this issue to Trac devs instead ... Thnx a lot ! Sorry if I caused you any trouble ... _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5072> _______________________________________ .. [1] urllib.open sends full URL after GET command instead of local path (http://bugs.python.org/issue50...@ok_message=msg%2080654%20created%3cbr%3eissue%205072%20messages%20edited%20ok&@template=item) -- Regards, Olemis. Blog ES: http://simelo-es.blogspot.com/ Blog EN: http://simelo-en.blogspot.com/ Featured article: Mirando la web de una forma distinta con Google Visualization API --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to trac-users@googlegroups.com To unsubscribe from this group, send email to trac-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---