Well this is just wrecking my head completely been stuck at it for like 2 days.
I am trying to upload an image via multipart cURL post.
Here is the way I am setting my post array
$post_vars = array();
$post_vars['__LASTFOCUS'] = "";
$post_vars['__VIEWSTATE'] = $viewstate;
$post_vars['__EVENTTARGET'] = "";
$post_vars['__EVENTARGUMENT']="";
$post_vars['uisearch'] = "Search Share";
$post_vars['M$c$uiuploadmedia$uialbumcontribute$uialbumlist'] = $username . ".mymedia";
$post_vars['M$c$uiuploadmedia$uifile01'] = '@C:\wamp\www\oviproject-2\mickey.gif';
Here is the live http headers from when a file is uploaded manually. This is just a sampling. I am sure I am putting the file part of the area in wrong.
-----------------------------65002556626222
Content-Disposition: form-data; name="M$c$uiuploadmedia$uialbumcontribute$uialbumlist"
username.mymedia
-----------------------------65002556626222
Content-Disposition: form-data; name="M$c$uiuploadmedia$uifile01"; filename="mickey.gif"
Content-Type: image/jpeg
ÿØÿà
Do I not need to include "Content-Type: image/jpeg ÿØÿà" in the file array and what way do I format this data.
Thanks for any help. I was trying to follow some of vsloathes threads on this but I just cant seem to find the answer to my question.