Hi, Anyone have a clue why this could be happening?
Trying to upload image to Twitpic using POST web request, but depending what line I use for the image filename, I either get a 401 Unauthorized or a 400 Bad Response (missing image data). I get 401 unauthorized if I use the following post line: Content-Disposition:form-data; name="media"; filename="someimage.jpg" But if I use this post line, it gives me a 400 Bad response, missing image data. Content-Disposition:form-data; name="media"; The response messages from twitter are: {"errors":[{"code":401,"message" "Could not authenticate you (header rejected by twitter)."}]} {"errors":[{"code":400,"message" "Bad Request. Media not included in POST payload."}]} Be grateful for any suggestions. My post is below......... Thanks Gerard --4b8be9b87562412daa2de4c757c4d914 Content-Disposition:form-data; name="key" 97bfc7bdhhggDdsdsd9630232def4eea82 --4b8be9b87562412daa2de4c757c4d914 Content-Disposition:form-data; name="message" a test message --4b8be9b87562412daa2de4c757c4d914 Content-Disposition: file; name="media"; filename="someimage.jpg" Content-Type:application/octet-stream ÿØÿàJFIFÿîAdobedÿáExifMM*ÿìDucky=ÿá(http://ns.adobe.com/ xap/1.0/<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?> <x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="Adobe XMP Core 5.0-c060 61.134777, 2010/02/12-17:32:00 "> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">