i'm new curl
, referring example : http://www.php.net/manual/en/book.curl.php#99979
i wanted write following curl request:
curl "http://localhost:8080/solr/update/extract?literal.id=doc1&commit=true" -f "myfile=@test.pdf"
using curl predefined constants. (http://www.php.net/manual/en/curl.constants.php)
i started off writing:
$tucurl = curl_init(); curl_setopt($tucurl, curlopt_url, "http://localhost:8080/solr/update/extract?literal.id=doc1&commit=true");
but, after that, couldn't figure out how write -f "myfile=@test.pdf"
part.
Comments
Post a Comment