Lispython / human_curl

Simple Human wrapper for cURL library
http://h.wrttn.me/human_curl
Other
205 stars 43 forks source link

Problem with url with get parameters without value #37

Open errx opened 10 years ago

errx commented 10 years ago
In [1]: import human_curl

In [2]: human_curl.get_version()
Out[2]: '0.1.8'

In [3]: import logging

In [4]: logger = logging.getLogger("human_curl")

In [5]: logger.setLevel(logging.DEBUG)

In [6]: handler = logging.StreamHandler()

In [7]: formatter = logging.Formatter("%(levelname)s %(asctime)s %(module)s [%(lineno)d] %(process)d %(thread)d | %(message)s ")

In [8]: logger.addHandler(handler)

In [9]: human_curl.get("http://github.com/?x", debug=True)
Open url: http://github.com/
Set timeout: 15
Setup user agent Mozilla/5.0 (compatible; human_curl; 0.1.8; +http://h.wrttn.me/human_curl)
Use method GET for request
Hostname was NOT found in DNS cache
Trying 192.30.252.130...
Connected to github.com (192.30.252.130) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: Mozilla/5.0 (compatible; human_curl; 0.1.8; +http://h.wrttn.me/human_curl)
> Host: github.com
> Accept: */*
...

The problem is that we lost get parameter "x"

nwlunatic commented 10 years ago

@errx You might want to review solving pull request https://github.com/Lispython/human_curl/pull/38