Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: lwp authorization

by hippo (Bishop)
on May 18, 2017 at 12:50 UTC ( #1190530=note: print w/replies, xml ) Need Help??

in reply to lwp authorization

$req->header('Authorization' => "Basic" .encode_base64('cv23gwyzqvur:ty7idfphrkl'));

That does not match the HTTP/1.1 Basic Auth spec.

Like haukex I cannot see why you have chosen not to use the already-available convenience method to achieve this. Can you explain your choice?

Replies are listed 'Best First'.
Re^2: lwp authorization
by bigup401 (Pilgrim) on May 18, 2017 at 13:13 UTC

    because the api documentations tells me . authenticate by encoding your username and password to Base64 HTTP Basic Authorization

      # | space # V $req->header('Authorization' => "Basic " .encode_base64('cv23gwyzqvur: +t +y7idfphrkl'));

        and i think the problem is with host i will either contact them. coz i have tried other host api and worked

      A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2022-08-16 11:12 GMT
Find Nodes?
    Voting Booth?

    No recent polls found