Forum Moderators: coopster

Message Too Old, No Replies

Reg login in remote server using curl in php

curl

         

arunmj82

3:43 pm on Feb 24, 2010 (gmt 0)

10+ Year Member



Actually my job is to log in to remote server and to download a file. But when I use curl in php to log in to remote machine, I am able to login successfully and then in the subsequent request I was not able to download the file inside it. I think this is because the cookie which I am using is not stored in the browser instead it is stored in folder.

Can anybody please help me on this issue. Its urgent...

jatar_k

1:56 pm on Feb 26, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld arunmj82,

take a look at the bit on cookies
[curl.haxx.se...]

you can search their site for other useful docs

coopster

2:03 pm on Feb 26, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, arunmj82.

cURL has cookie management options. You can manage session cookies (browser) or files. See the curl_setopt [php.net] page for more information.