Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: curl problem

by haukex (Archbishop)
on Jul 08, 2018 at 14:16 UTC ( [id://1218115]=note: print w/replies, xml ) Need Help??


in reply to curl problem

I don't think the translation of curl -u <AUTH_ID>:<AUTH_TOKEN> to default_headers => { AUTH_ID=>..., AUTH_TOKEN=>... } is correct. In curl, -u specifies a username/password for authentication, the equivalent in HTTP::Tiny (and therefore HTTP::Tinyish, I assume) is to include a username:password in the URL - but it supports Basic Authentication only. See the HTTP::Tiny docs for details, but if you have to support Digest Auth, you might need to switch to something like LWP.

Replies are listed 'Best First'.
Re^2: curl problem
by bigup401 (Pilgrim) on Jul 08, 2018 at 14:34 UTC

    sure u-username v-password

      true, i think i need to do it with Basic Authentication, coz thats the reponse i get when i put api url in browser

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2024-04-18 03:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found