Downloading From Curl/Wget
Posted: Mon Nov 05, 2007 1:31 am
O i posted in another thread about sending data to PHP from POST method. cURL did the job 
viewtopic.php?t=75660&sid=bece4003a9b1d ... d0198fa589
What im doing is, using the batch to create file...then Uploading it one the server through POST form so the file can be stored and editted with the information i need. Ive Got it working till here, it uploads and edits the file perfectly But what i want to do next is that as the POST DATA is sent and processed i want to Download the UPDATED file back on my PC using the ID of file Generated on the same page.
TO achieve this i added a redirect link the the download page at the end of DOUPLOAD.php i added this line:
But curl doesnt automatically download the file. Is there anyway to make it download from the Redirect Link at the end of php file after sending the POST Data/File ? Im trying to Download of the same page (DOUPLOAD.php) as it includes the ID generated for the upoaded file. (if thr is any other way to send the Unique Id generated by doupload.php to the batch thn please let me know)
Any help would be greatly appreciated.
Thank you
PHPfrk
viewtopic.php?t=75660&sid=bece4003a9b1d ... d0198fa589
What im doing is, using the batch to create file...then Uploading it one the server through POST form so the file can be stored and editted with the information i need. Ive Got it working till here, it uploads and edits the file perfectly But what i want to do next is that as the POST DATA is sent and processed i want to Download the UPDATED file back on my PC using the ID of file Generated on the same page.
TO achieve this i added a redirect link the the download page at the end of DOUPLOAD.php i added this line:
Code: Select all
header("Location: localhost/download.php/$id/$filename");Any help would be greatly appreciated.
Thank you
PHPfrk