Ugg there just isn't enough info on these functions. I even found the LibURL docs but with only one example per function its not much help.
Ok, i've figured out that I want to be posting to the basic.php url (that is the "action" of the form).
Now I have built the post using libUrlMultipartFormData
here is what my post looks like (with only a little of the binary image data showing for obvious reasons) I put it into msg.
Code: Select all
Content-type: multipart/form-data; boundary="__Part__7pudncoedfii310w6zjmggr2g"
--__Part__7pudncoedfii310w6zjmggr2g
Content-Disposition: form-data; name="userfile"; filename="C:\picture.jpg"
Content-Type: application/octet-stream
ÿØÿÃ
And binary Gibbrish continues....
I also put the result I get from the basic.php into message. It states that the file is not of correct file type, but it is a .jpg, and I can uplaud the same file through the actual form just fine.
Code: Select all
<font color="#333333" face="Geneva, Arial, Helvetica, sans-serif">You selected a wrong filetype!</font><br>
I've pretty much hit a dead end. please I'm sure I'm just missing something like encoding or something.