Skip to content

Problem with url with get parameters without value #37

@errx

Description

@errx
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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions