Code: 
-----------------------------30870195987994
Content-Disposition: form-data; name="file[]"; filename=""
Content-Type: application/octet-stream


-----------------------------30870195987994
Content-Disposition: form-data; name="file[]"; filename="K43TA206.zip"
Content-Type: application/zip
So I'm trying to write a basic curl upload script for bitshare. I know there is a rapidleech plugin for it, but I'm just wondering how do I pass the empty file as a post field. Bitshare is weird in that they post an empty file array in their header. If I leave it out, the upload does not work.

In the rapidleech plugin, they open a socket and literally just paste that exact section. For curl I pass in an array format usually.

array ( "file[]" => "@$filename");

I've tried

PHP Code: 
array ( "file[]" => """file[]" => "@$filename
But it doesn't work. Any help would be appreciated.
futureawesome Reviewed by futureawesome on . CURL - postfields how to replicate these headers -----------------------------30870195987994 Content-Disposition: form-data; name="file"; filename="" Content-Type: application/octet-stream -----------------------------30870195987994 Content-Disposition: form-data; name="file"; filename="K43TA206.zip" Content-Type: application/zip So I'm trying to write a basic curl upload script for bitshare. I know there is a rapidleech plugin for it, but I'm just wondering how do I pass the empty file as a post field. Bitshare is weird in that Rating: 5