Can you use PHP libcurl to pull files from server A to server B?

Posted by Majid on Stack Overflow See other posts from Stack Overflow or by Majid
Published on 2010-05-23T00:44:32Z Indexed on 2010/05/23 0:50 UTC
Read the original article Hit count: 326

Filed under:
|
|

Hi,

cURL and libcurl let you do things you normally do with a browser, right? Like, as if you have a jini sit inside a server and fire up a browser and do stuff.

Ok then. I need a script to sit on server B, and click on download links on a server A and download files (from server A to server B).

I am new to curl, and not sure if all I need is to issue a simple get or something else. I know that Content-disposition header forces the browser to save the document. Does it have the same effect on libcurl too? If it does, I'll make my serving script on server A send that header, and then serve the file.

Any advice is appreciated.
Thanks

© Stack Overflow or respective owner

Related posts about php

Related posts about curl