http-useragent
http-useragent copied to clipboard
Web user agent class for Perl 6.
Everytime I tried to conect via a proxy, I was getting a `400 Bad Request` error. Debugging the problem, I found out that the `Str` method of `HTTP::Request` was ignoring...
E.g. I have this PHP script on the server: ```
I set the proxy using the `HTTP_PROXY` environment variable, and depending on the website's protocol, HTTP::UserAgent does two things: - http://httpbin.org/ip: it says "Invalid header received from client." - https://httpbin.org/ip:...
And they are incorrect, at that...
I'm trying to create a POST request like: ``` POST /foo HTTP/1.1 Content-Type: application/json Host: example.com {"foo":1, "bar": 2} ``` As far as I can figure out, this is not...
HTTP::Message in Str method is silently appending EOL: https://github.com/sergot/http-useragent/blob/cfdfc48c55d312049f90f1db61042718c1de9908/lib/HTTP/Message.pm6#L231 This causes `Content-Length` calculated by user to be incorrect: ``` $response = HTTP::Response.new; $response.set-code( 200 ); my $content = 'foo'; #...
Is it possible to add a no-follow or similar option so that responses aren't followed?
It arises [when installing WWW](https://travis-ci.com/JJ/API-USNavalObservatory). HTTP::Response is missing, but UserAgent is installed correctly. Any idea?
It seems that the tests that use some test server intermittently fail because the test server hasn't completely started by the time it is needed. This is specifically the /230-binary-request.t...