how can i create a fileRequester with this type ?

Just starting out? Need help? Post your questions and find answers here.
skinkairewalker
Posts: 120
Joined: Tue Jun 14, 2016 7:17 pm

how can i create a fileRequester with this type ?

Post by skinkairewalker »

hi everyone !

how can i create with SpiderBasic a Form like this >

Code: Select all

<html>
 <head>
  <title>Upload System/title>
 </head>
 <body>
  <form enctype="multipart/form-data" action="upload.php" method="post">
   <p>File: <input type="file" name="file"></p>
   <p><input type="submit" value="Upload"></p>
  </form>
 </body>
</html>
how can i set enctype = "multipart/form-data" with Spiderbasic to send with "post method" ?
User avatar
SparrowhawkMMU
Posts: 291
Joined: Wed Aug 19, 2015 3:02 pm
Location: United Kingdom

Re: how can i create a fileRequester with this type ?

Post by SparrowhawkMMU »

Check out the help for HTTPRequest() .

Code: Select all

NewMap headers.s()
headers.s("enctype") = "multipart/form-Data"
HTTPRequest(#PB_HTTP_Post, "http://www.my-url.com", @MyCallBack(), 0, headers())
Note: requires SB 2.0.0, the headers parameter is not available in v1.xx versions
Post Reply