Skip to main content

Hi Everyone,

I'm trying to automate posting articles on a website after login [post] using Zapier. I can log in and get a session cookie (like PHPSESSID) from response header, but I'm stuck on how to use this cookie for a subsequent POST request(for posting articles). Zapier's Webhook handles the login but doesn't seem to pass the session cookie to the next request.

 

Does anyone know how to use the session cookie from the login response in a follow-up POST request in Zapier?

Thanks for any tips!

Hi @Anything 

To give us full context, post screenshots with how your Zap steps are outlined and configured, thanks.


Hi @Troy Tessalone 

This is my Zapier setup, I can see that I’m getting 200 response (correct response page html return) on 2nd step I attached screenshot of Zapier page. 

 


@Anything 

Can you post screenshots of the DATA OUT from step 2?


@Troy Tessalone This is the output screenshot. It’s a html response  from signin_home.php 

is it possible to grab html response header and use it for 2nd request(posting article on the same website)? 


@Anything 

This looks like it’s returning the HTML of the login page, rather than a JSON response.

Can you link to the API docs you are referencing to configure the HTTP requests?