I am trying to use a library requeststo do some HTTP GET / POST work. I need to create a url that looks like this:
http:
I can not find anything except:
r = requests.get("http://mysite/mypage.php", params={"myval":10})
which will result in the url with ?myval=10.
Is there a way to get inequality in the url? Fortunately, I'm still learning which packages to use, so I'm not married to requestsif this is something that just won't work.
source
share