Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: HTTPS returning 400 from Linux but 200 OK from Windows

by madtoperl (Hermit)
on Jan 27, 2017 at 14:32 UTC ( #1180477=note: print w/replies, xml ) Need Help??


in reply to HTTPS returning 400 from Linux but 200 OK from Windows

You can try below,
$ua->credentials( $linktologin, $pause, $username, $password ); Eg. $ua->credentials( 'https://google.com/:443', 'PAUSE', ‘$username +’, ‘$password’);

You can refer below link for more details, https://perlmaven.com/lwp-useragent-and-basic-authentication

Replies are listed 'Best First'.
Re^2: HTTPS returning 400 from Linux but 200 OK from Windows
by marto (Cardinal) on Jan 27, 2017 at 14:59 UTC

    https://google.com/:443 isn't a valid URL, even if it were Google wouldn't identify as 'PAUSE'. If you're going to copy and paste an example, it doesn't make sense to edit it so that it doesn't work.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2023-12-06 17:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (31 votes). Check out past polls.

    Notices?