in reply to anyevent http 404code
--- 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 | |
|
Re^2: anyevent http 404code
by liuweichuan (Acolyte) on Oct 20, 2016 at 03:20 UTC | |
by liuweichuan (Acolyte) on Oct 20, 2016 at 05:28 UTC |