Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: anyevent http 404code

by Krambambuli (Curate)
on Oct 19, 2016 at 10:28 UTC ( #1174283=note: print w/replies, xml ) Need Help??


in reply to anyevent http 404code

The relevant info in the AnyEvent::HTTP documentation refers to request headers and reads
---
   You really should provide your own "User-Agent:" header value that is appropriate for your program - I wouldn't be surprised if the default AnyEvent  string gets blocked by webservers sooner or later.

---
The server blocks the AnyEvent request, but works ok if you indicate another valid User-Agent. Like
http_get $url, headers => { 'User-Agent' => 'curl/7.47.1' }, sub { [...]

Replies are listed 'Best First'.
Re^2: anyevent http 404code
by Anonymous Monk on Oct 20, 2016 at 02:51 UTC
    headers => { 'User-Agent' => 'curl/7.47.1' }, for your code has syntax error
Re^2: anyevent http 404code
by liuweichuan (Acolyte) on Oct 20, 2016 at 03:20 UTC
    for other web "https", error:TLS support not available on this system. done. install net ssleay it's ok now
      it can run now. install net ssleay

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1174283]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2023-12-03 00:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (20 votes). Check out past polls.

    Notices?