Menu

Post data to form which is submitted with javascript

Help
Anonymous
2013-07-17
2013-07-30
  • Anonymous

    Anonymous - 2013-07-17

    Hi all

    I am trying to use this crawler to submit a login form, so that I can crawl beyond it. However, the login form doesnt have a form tag and action="formprocess.php". Instead its submitted using javascript, like this:

    < input type="submit" name="OutsideHomePageControl$cmdCustomerNumber" value="" onclick="javascript:WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions("OutsideHomePageControl$cmdCustomerNumber", "", true, "", "", false, false))" id="OutsideHomePageControl_cmdCustomerNumber" class="OHPSearchButton" />

    I was wondering if anyone knew how to submit to this kind of form.

    Thanks

     

    Last edit: Anonymous 2013-11-20
  • Anonymous

    Anonymous - 2013-07-30

    Hi!

    The best ans easiest way is to "sniff" for the request-header a browser sends in such a case and just look for the post-variables in it.

    You may use a browser plugin like http-live-headers or wireshark or similar for it, it's really easy with that.

    Hope i could help!

     

Anonymous
Anonymous

Add attachments
Cancel





Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.