开发者

login form problem with curl

i want to make a login form to login to a web... but something is wrong.. when i copy default form from the site... it works.. it has a submit btn and has no name just a value .... when i change value...it not work... i want to know how the input be send without any name... thank you

<form id="frm-12827221184c74c9466e522" method="post"
  action="http://www.mihanblog.com/web/signin/index/atrty/1282722118/avrvy//key/f5224dc9066b9f05c83d1df787019e69/">
<div class="form-row clearfix">
    <label class="" for="address">address</label>
    <input type="text" name="data[address]" id="address" value="" class="en开发者_运维问答glish">
</div>

<div class="form-row clearfix">
    <label for="username">username</label>
    <input type="text" name="data[username]" id="username" value="" class="english">
</div>

<div class="form-row clearfix">
    <label class="" for="userpass">userpass</label>
    <input type="password" name="data[userpass]" id="userpass" value="" class="english">
</div>

<div class="controls clearfix">
    <input type="hidden" name="secfrdcodedvar" id="secfrdcodedvar" value="c7475daec89cff9e98336f3864b164c0">
    <input type="submit" value="11" class="btn" style="width:80px">
</div>

        <input type="hidden" name="frm-id"value="12827221184c74c9466e522" id="frm-id"></form>


You should consider checking traffic with tools like Wireshark. It will help you understand how HTTP works and how to particular form works. Then try to replicate it with cURL and you'll be able to see the differences

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜