not use cookies (General questions)
by Klinzter, Friday, November 12, 2010, 18:46 (5125 days ago)
hello there,
I am doing a request to a page that requires cookies but then in the second page I cant use cookie but I dont want to remove them because I need them for the 3rd page.. how can I do a GET with no cookies but without removing them all...
Re: not use cookies
by woddrazen, Friday, November 12, 2010, 18:58 (5125 days ago) @ Klinzter
Hi Klinzter,
I'm not completely sure that I understand what exactly you want to achieve.
However if you want o to send same cookies in next request, you can store cookie values in some variables.
In next request you can load such values in wodHttpDLX HttpCookies Collection and send them again.
Hope this helps.
Regards,
Drazen
Re: not use cookies
by irdanoob, Tuesday, February 01, 2011, 02:46 (5045 days ago) @ woddrazen
Hi Klinzter,
I'm not completely sure that I understand what exactly you want to achieve.However if you want o to send same cookies in next request, you can store cookie values in some variables.
In next request you can load such values in wodHttpDLX HttpCookies Collection and send them again.
Hope this helps.
Regards,
Drazen
I have the same problem what he's saying is like first page you'll recieve
cookie1
cookie2
cookie3
but the 2nd page you will only need to send cookie 1
and the 3rd page you will need to send cookie 2 and 3 without 1
get it?
so
GET PAGE1.HTM
202 HTTP OK
SET-COOKIE: COOKIE1
SET-COOKIE: COOKIE2
SET-COOKIE: COOKIE3
POST PAGE2.HTM
COOKIE: COOKIE1
302
LOCATION: PAGE3.HTM
POST PAGE3.HTM
COOKIE: COOKIE2
COOKIE: COOKIE3
Re: not use cookies
by woddrazen, Tuesday, February 01, 2011, 09:11 (5045 days ago) @ irdanoob
Hi,
Still I don't see why you cannot try my suggestion?
If you need to use cookie like that, you can load it from inside variable.
Let us know how it goes.
Regards,
Drazen
Re: not use cookies
by irdanoob, Sunday, February 06, 2011, 22:45 (5039 days ago) @ woddrazen
Klintzer, I have solved my issue but I have a word of advice for you. Look at your debug file and in the responses check the Host: header because I am willing to bet that you are recieving cookies from 2 different hosts.