curl cookie problem in PHP
Posted
by safaali
on Stack Overflow
See other posts from Stack Overflow
or by safaali
Published on 2010-01-19T13:36:18Z
Indexed on
2010/05/07
2:08 UTC
Read the original article
Hit count: 226
hi
as my client needs, I developed a code to login via cURl.
login to www.web1.com and store cookies in cookie.txt
go to www.web2.com and browse a page using that cookie.txt
no problem with www.web2.com
so when i want to do this with www.web3.com, the problem appears.
the www.web3.com uses session and cookies itself and I have to gather and use them.
it means I should have tow series of cookies, first those from www.web1.com , and second those from www.web3.com , then request the www.web3.com/somepage
how I can do that?
© Stack Overflow or respective owner