[issue39875] urllib.request.urlopen sends POST data as query string

2020-03-06 Thread Adrian Petrescu
Adrian Petrescu added the comment: (Oops, that was a bad paste! I meant this link: https://docs.python.org/2/library/urllib.html#urllib.urlopen) -- ___ Python tracker <https://bugs.python.org/issue39

[issue39875] urllib.request.urlopen sends POST data as query string

2020-03-06 Thread Adrian Petrescu
Adrian Petrescu added the comment: This is not a bug, you've just misunderstood the urllib API. If you want to pass POST data as a payload, it's the second `data` parameter to `urlopen`: https://bugs.python.org/?@action=confrego=KX9AqsI0JnOLkplIY1AGKXAmDKa38COy -- nosy: +apetresc

[issue3330] webbrowser module doesn't correctly handle '|' character.

2008-07-09 Thread Adrian Petrescu
New submission from Adrian Petrescu [EMAIL PROTECTED]: The webbrowser module seems to treat URLs containing the | character differently based on whether the browser is already running or not. For instance, consider the following python script: import webbrowser url = http://foo.com/bar.html

[issue3330] webbrowser module doesn't correctly handle '|' character.

2008-07-09 Thread Adrian Petrescu
Adrian Petrescu [EMAIL PROTECTED] added the comment: Just as an aside, the reason I consider this a fairly serious bug is that the Google Charts API urls make heavy use of the '|' character, which means if I want to have Python use it by opening the user's browser, it won't work if they don't