douang4294 2012-04-18 01:35
浏览 78
已采纳

是否可以在ASPX页面上使用带有cURL的连续POSTS?

I am trying to use cURL on an ASPX page, and I would like to know if I am not wasting my time dealing with the POSTing values I am not sure of: specifically being :

__VIEWSTATE  
__EVENTVALIDATION  
__EVENTTARGET  
 __EVENTARGUMENT 

I need to send several forms one after the other and I think the values rely on one another.
How can I learn how to generate the correct values for them ?

  • 写回答

1条回答 默认 最新

  • dongzhan7253 2012-04-18 01:45
    关注

    cURL is an HTTP client, it'll happily hit whatever URI you tell it to in whatever way it's instructed to as many times as you tell it. So the answer to "is it possible to use consecutive POSTS with cURL" is yes.

    What I think you're asking is how you can ensure that you're using cURL to POST data -- specifically, form variables -- that safely simulate multiple form submissions for that particular site.

    Your best bet here, as it is for any HTTP scripting/replay, is to carefully study what happens when you hit the page "normally", ie with a browser.

    As this blog post that's doing something awfully similar to you suggests, you almost certainly want a tool like LiveHTTPHeaders to clearly see what's going over the wire.

    Once you know what to send, cURL is certainly equal to the task.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部