in reply to 400 error

<html><head><title>An Error Occurred</title></head> + <body><h1>An Error Occurred</h1><p>400 URL missing</p></body></html> https://www.cnn.com had response code of 400 at soft1.pl line 92.
Thank you for replying, please suggest, is this program crash because of request method, I tried using different method for HTTP:Request. Or is it LWP::ua issue. It keeps giving me this error for past 24 hours.

Replies are listed 'Best First'.
Re^2: 400 error
by Your Mother (Archbishop) on Dec 01, 2018 at 00:46 UTC

    You’re doing something wrong. With your current snippets it’s probably impossible to guess what.

    perl -MLWP::UserAgent -E 'say "OK" if LWP::UserAgent->new->get("https: +//www.cnn.com")->is_success' OK

      Hi, you might like L.


      The way forward always starts with a minimal test.

        I think I do indeed. Thanks for the call out.