Jump to content

Formfill / Multiform fill WinHTTP


Recommended Posts

Hello everyone.
I would like to automate some things on my forum with AutoIT and so far I successfully logged in and everything seems to be going well, however this type of form I have no clue on how to make, I tried with a couple of different ideas and what not, but so far it wont work.
I already found what I need for making unix timestamps and so on, so all I need is to understand how to make this in WINHTTP

$sRead = _WinHttpSimpleFormFill($xConnect, "posting.php?mode=post&f=124", Default, "name:topic_seo_title", "testing my stuff before actually posting", "name:seo_desc", "testing my stuff before actually posting", "name:icon", "2", "name:subject", "testing my stuff before actually posting", "name:addbbcode20", "100", "name:message", "MoonBoys full video rips from popular porn sites", "name:post", "Submit", "name:fileupload", "Content-Type: application/octet-stream", "name:filecomment", "name:lastclick", $iUnixTime, "name:creation_time", $iUnixTime, "name:form_token", $uh)
------WebKitFormBoundaryPH
Content-Disposition: form-data; name="topic_seo_title"

testing my stuff 
------WebKitFormBoundaryPH
Content-Disposition: form-data; name="seo_desc"

testing my stuff 
------WebKitFormBoundaryPH
Content-Disposition: form-data; name="seo_key"


------WebKitFormBoundaryPH
Content-Disposition: form-data; name="icon"

2
------WebKitFormBoundaryPH
Content-Disposition: form-data; name="subject"

testing my stuff 
------WebKitFormBoundaryPH
Content-Disposition: form-data; name="addbbcode20"

100
------WebKitFormBoundaryPH
Content-Disposition: form-data; name="message"

[center][b]testing this[/b]

[i][b]test:

test:
[neon=Pink]Screenshots:[/neon]

test Details:[/b][/i][/center]
------WebKitFormBoundaryPH
Content-Disposition: form-data; name="post"

Submit
------WebKitFormBoundaryPH
Content-Disposition: form-data; name="fileupload"; filename=""
Content-Type: application/octet-stream


------WebKitFormBoundaryPH
Content-Disposition: form-data; name="filecomment"


------WebKitFormBoundaryPH
Content-Disposition: form-data; name="lastclick"

1488467908
------WebKitFormBoundaryPH
Content-Disposition: form-data; name="creation_time"

1488467908
------WebKitFormBoundaryPH
Content-Disposition: form-data; name="form_token"

4ee1f6e9f21d7147f31a94d16bb16eaddf7bb3e8
------WebKitFormBoundaryPHhcKRBLEwtQXIqY--

 

Edited by RyukShini
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...