Basic authentication in HTTP request

Paolo Pelori shared this question 11 years ago
Answered

Hi, is there a way in HTTP request configuration to pass basic authentication parameters? (same as curl -u ...)

Thanks!

Replies (6)

photo
1

Hi Paolo,


can you please give me an example what kind of parameters do you wish to send?


regards,


Hrvoje

photo
1

Hi Hrvoje,

thanks for your answer, sure I can:

I need to pass user\password parameters in the same way i'd do in a browser tab (see attachment)


regards,

---

Paolo

Files: auth.jpg
photo
2

Hello again Paolo,


in your URL after // type your user name and password:


//username:password@api.pushbullet.com/v2/pushes


Best regards,


Hrvoje

photo
1

Hi HRVoje,

thanks for your answer! I just forgot I can authenticate in that way -__-'

Unfortunately my HTTP request is not working yet, because I'm having trouble with json body (see attach). I saw there's a post regarding json but no helpful answer.


Regards,

--

Paolo

Files: json.jpg
photo
1

If your goal is to use pushbullet for notification you'll need to specify the bearer token in this way (see attachment)

photo
1

Thank you, Pål, my goal was exactly that! But meanwhile, as I didn't find any solution, I switched to Pushover. I think I'll try anyway...

Thanks again!

Leave a Comment
 
Attach a file
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!
You can't vote. Please authorize!