How to Authenticate an HTTP Request Using a Cookie

Iam using http request activity and i want to get response of specific endpoint, but i need to set a cookie key to authenticate the endpoint. How to do this?
pls if u can upload a screen if u had a solution it will be very helpful.

@Mohamed_Ahmed_Mofreh

Welcome to the community

There is a cookies parameter you can send through it

First try with postman and try to replicate

Cheers

Here where iam stuck, i tried postman and send the value of the cookie in Bearer Token and worked. but when i tried it to http request activity i can’t figure out what’s the right format to use and where. i tried it in cookie parameters or adding a header but not worked and always give me same response (“{"error":{"message":"We are unable to serve your request","type":"permission_error"}}”)

@Mohamed_Ahmed_Mofreh

did you happen to import the curl and check?

cheers

I don’t know what u mean. but here is the cookie value i used in postman and works but can’t know where to use it in http request.

@Mohamed_Ahmed_Mofreh

give sessionKey as Name in cookie parameter and value as the rest highlighted and try

and in postman you have </> in the right where if you click you would get option to copy curl which can be imported in http request in UiPath

cheers

@Anil_G
I tried what u said and still same problem. i copied the curl from postman and import it then add cookie name&value but nothing change unfortunately. but thanks for ur time♥