perl6-http-client icon indicating copy to clipboard operation
perl6-http-client copied to clipboard

HTTP::Client test errors

Open azawawi opened this issue 13 years ago • 11 comments

Without running the internal HTTP::Easy example, i cannot depend on HTTP::Client. Could you explain what the issue you are having with rakudo perl6? I want to use HTTP::Client for https://github.com/azawawi/farabi6/

Even if i install HTTP::Client without executing any tests, i still get "Failed to get $url":

use HTTP::Client;
my $client = HTTP::Client.new;
my $url = 'http://google.com';
my $response = $client.get($url);
if ($response.success) {
        say "Got the following: $url";
} else {
        say "Failed while getting $url";
}

azawawi avatar Oct 21 '12 10:10 azawawi

I honestly don't know what the issue is with HTTP::Client. It refuses to bind to any address other than localhost. I need to go back an do a wholesale rewrite on this library. It was originally inspired by the LWP::Simple library, but designed to have a simpler, more Perl 6ish API. It's next on my list of modules needing some love. There are plenty of things that have come into existence since it was last worked on, such as Buf support, that would make it a lot nicer.

supernovus avatar Oct 22 '12 03:10 supernovus

I am slowly working on a wholesale rewrite of the HTTP::Client library, which will support Buf, fix the chunked data transfers, use the URI library instead of my very limited URL grammar, and more. I'll see if I can figure out the issues with binding to an outside address while I'm at it.

supernovus avatar Oct 24 '12 17:10 supernovus

Any update on this one?

azawawi avatar Nov 11 '12 08:11 azawawi

Rewrite resumes shortly.

supernovus avatar Nov 11 '12 13:11 supernovus

Is the rewrite still NYI?

ab5tract avatar Nov 28 '14 15:11 ab5tract

This project is currently unmaintained. If someone wants to take it over, feel free. There are some other HTTP client libraries for Perl 6 that are far more complete than this one. I will likely rebuild this one at some point using one or more of the others as a foundation.

supernovus avatar Nov 29 '14 20:11 supernovus

How about deprecating the module in README.md and suggesting better alternatives like https://github.com/sergot/http-useragent/ ?

azawawi avatar Dec 01 '14 09:12 azawawi

That's a good idea azawawi. I'll do that shortly.

supernovus avatar Dec 04 '14 16:12 supernovus

Ping? I'm about to suggest one (or a few) PRs, so I'd like to know if it's worth the while. I use it in my own Wikidata::API

JJ avatar Apr 27 '20 17:04 JJ

I haven't worked on this project in a few years, and nobody seemed too interested in adopting it. I'd been recommending people move to HTTP::UserAgent which has more features. However if your PRs make this more usable again, go for it. Heck, I'll give your user direct write access on this repo!

supernovus avatar Apr 29 '20 16:04 supernovus

For some reason, it's a dependence of my Wikidata::API module... So I'll be happy to keep it running. Thanks!

JJ avatar Apr 29 '20 16:04 JJ