Page 1 of 1

How to fetch member page by PHP?

Posted: Wed Aug 23, 2006 5:00 am
by iamjhlee
Hi my friends:

I am write a small program by PHP to login into a remote site and fetch member page. (by fopen)
But the authentication is not by standard but rather like session or cookie.

How can I fetch the member page? I can fetch the page after login, but I cannot fetch
other pages.

Your help is appreciated, thanks a lot.

Jerry :?

Posted: Wed Aug 23, 2006 5:16 am
by onion2k
Use cURL .. it supports cookies (and therefore sessions) just like a browser.

Thanks Onion

Posted: Wed Aug 23, 2006 6:35 am
by iamjhlee
onion2k wrote:Use cURL .. it supports cookies (and therefore sessions) just like a browser.
Thanks Onion!
It looks really difficult of cURL. I'll try it.

-
Jerry

Posted: Wed Aug 23, 2006 9:14 am
by feyd
curl is rather easy unless you need to go through convoluted ways of getting communication out of the server. Post back with your problems if you hit something.