HttpRequest POST file upload

Monkey Forums/Monkey Programming/HttpRequest POST file upload

Beaker(Posted 2013) [#1]
Does anyone have any code that uses brl.httprequest to upload a file (text) to PHPs $_FILE ?

Thanks.


Beaker(Posted 2013) [#2]
Surprised no one has got this working. I got half way there, but it failed to actually find the file or something.


Markus(Posted 2013) [#3]
here is a example
c:\MonkeyPro72b\docs\html\examples\brl_httprequest_HttpRequest.monkey
did you see and try it?

it says UpdateAsyncEvents must used in OnUpdate
and you can add the correct mimeType parameter in .Send
text/plain is default.

http://www.w3schools.com/php/php_file_upload.asp
http://www.w3schools.com/php/php_post.asp
http://de.selfhtml.org/diverses/mimetypen.htm


Skn3(Posted 2013) [#4]
This might be port-able? http://blitzbasic.com/codearcs/codearcs.php?code=1932