sforce5 Posted January 6, 2010 Share Posted January 6, 2010 (edited) ImageShack API$sFile = "C:\image.png" $sKey = "EXAMPLE KEY" $oHTTP = ObjCreate("WinHttp.WinHttpRequest.5.1") $oHTTP.Open("POST", "http://www.imageshack.us/upload_api.php") ;$oHTTP.SetTimeouts(5000, 5000, 15000, 15000) $oHTTP.SetRequestHeader("Content-Type", 'multipart/form-data;') $oHTTP.SetRequestHeader("User-Agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)") $oHTTP.Send('fileupload="' & $sFile & '"&key=' & $sKey) $oHTTP.WaitForResponse() $sResponse = $oHTTP.ResponseText() ConsoleWrite($sResponse)returning this<links> <error id="parameter_missing"> Sorry, but we've detected that unexpected data is received. Required parameter 'fileupload' is missing or your post is not multipart/form-data </error> </links>Developer Key is Exists!!! Edited January 6, 2010 by sforce5 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now