Can you use PHP libcurl to pull files from server A to server B?
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.
Thanksinstead of curl, there's are another way
shell_exec ("wget http://joomlacode.org/gf/download/frsrelease/11396/45610/Joomla_1.5.15-Stable-Full_Package.zip");
精彩评论