[BangPypers] Https and http difference in behaviour urllib2

Shekhar Tiwatne pythonic at gmail.com
Wed Feb 22 11:09:06 CET 2012


On Wednesday 22 February 2012 03:34 PM, Amit Sethi wrote:
> Hi all , Can someone explain to me why things are implemented the following
> in urllib2.
Show your code. It's then easier for people who are willing to help.
> When I pass encoded url using http it again encodes the parameters
> whereas in case of https it does not urlencode again
>
> so lets say the (http) call is
> http//:example.com?email=amit%40sethi.comthe request is
>
> http://example.com?email=amit%2540sethi.com
>
> where as in case of https it is
>
>    https://example.com?email=amit%40sethi.com
>
>
> Thanks
> Amit
>
>
>



More information about the BangPypers mailing list