This topic was automatically generated from Slack. You can find the original thread here.
Rinat Uspensky : Hi Team! How i can get cookie from http response ?
This topic was automatically generated from Slack. You can find the original thread here.
Rinat Uspensky : Hi Team! How i can get cookie from http response ?
Dylan Sather (Pipedream) : HI , take a look at this workflow. It parses the the HTTP response from google.com (just an example), and returns the cookies included in the set-cookie
response header as a JavaScript object (keyed on the cookie name) that you can parse in subsequent steps of your workflow.
Does that help?
Rinat Uspensky : Thank! Your advice helped!
Rinat Uspensky : Hi
Rinat Uspensky : I make request
<http://api.scraperapi.com?api_key=XXXXX&url=https://domain.com/generic-tokentxns2?p={{steps.trigger.event.body.address}}>
But I see error: SyntaxErrorUnexpected token : in JSON at position XX.
Possibly error occurs due to second symbol ?
How we can ignore second ?
symbol in request ?
Dylan Sather (Pipedream) : when you pass a URL as the value of a query string parameter, parts of the URL like the ?
must be URL encoded. I’d recommend passing query string parameters using the params
property of the axios request (see our example in the docs and this resource). axios
will automatically encode any params sent in the params
section for you, and append them to your URL.