You are viewing limited content. For full access, please sign in.

Question

Question

retrieving and passing cookies with Form Post or Web Request

asked on May 12, 2015

Hi all,

I have a question about reading and setting cookies. When I use the "Test Request" option of the HTTP Form Post activity, I get a windows showing me I've had a successful post and it also shows me the cookies set by the target site.

I'd like to use and set those cookies and values in the following HTTP Form Post activity but it doesn't seem to be possible. Can this be done?

-Ben

1 0

Answer

SELECTED ANSWER
replied on May 12, 2015

In the advanced options for the post/request activities you'll find options for setting the cookie container at runtime. 

 

When testing you should see a dialog asking about cookies. You would specify your cookies there following the syntax for the set-cookie header, http://tools.ietf.org/html/rfc2109#section-4.2.2

So to test your two things together, you would test the first one, it'll tell you what cookies are set. Then you take that and test the second activity and set the cookies in the dialog there. 

Response from Http Web Request

Test Dialog for POST:

 

2 0
replied on September 1, 2016

Thanks Ed. Very helpful!

0 0

Replies

replied on May 13, 2015

Hi Ed,

That's what I was after. 

-Ben

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.