import pycurl c = pycurl.Curl() c.setopt(pycurl.URL, "url") # $ clientRequestUrlPart="url"