Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with url with get parameters without value #37

Open
errx opened this issue Jul 23, 2014 · 1 comment
Open

Problem with url with get parameters without value #37

errx opened this issue Jul 23, 2014 · 1 comment

Comments

@errx
Copy link

errx commented Jul 23, 2014

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
Copy link
Contributor

@errx You might want to review solving pull request #38

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants