Search code examples
pythonhttplib2

include hash # in url with httplib2


I'm trying to make an http request using httplib2:

import httplib2, time, re, urllib`
conn = httplib2.Http(".cache")


page = conn.request(u"http://www.mydomain.com/search?q=cars#p=100","GET")

The response is ok, but the "#p=100" does not get passed over. Does anyone know how to pass this over with httplib2?

thanks


Solution

  • The fragment in the URL is not passed to the server.