$_POST uploaded $_FILES using cURL
Posted: Thu Jan 20, 2011 7:08 am
Hey guys,
I am creating an application which has a form that need to post results to a remote server.
On a $_FILES submission I need the posted $_FILE to be transported via cURL's POST. Research has shown that when passing files to cURL I need to
but is it that I need to save the file to the server first? Is this the correct way to the transport the file? does cURL read and encode the file before sending off? or does the end app get the path for it to read?
I am creating an application which has a form that need to post results to a remote server.
On a $_FILES submission I need the posted $_FILE to be transported via cURL's POST. Research has shown that when passing files to cURL I need to
Code: Select all
array('datafile'=>'@/path/to/file'); but is it that I need to save the file to the server first? Is this the correct way to the transport the file? does cURL read and encode the file before sending off? or does the end app get the path for it to read?