You send HTTP GET params in the URL (and not as an encoded part of the request body like POST
), change your Python to look like this and you should get what you are after:
import urllib,httplib
conn = httplib.HTTPConnection("auburn.craigslist.org")
params = urllib.urlencode({'query': 'english tutor', 'catAbb': 'bbb'})
conn.request("GET","/search?%s" % params)
response = conn.getresponse()
print response.read()
Also you it will make your life a lot easier if you pass this input to Beautiful Soup, for parsing and extracting information.