HttpWebRequest POST数据 [英] HttpWebRequest POST data

查看:93
本文介绍了HttpWebRequest POST数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以像在浏览器中那样使用C#中的HttpWebRequest进行完全相同的POST?页面无法检测到实际上不是浏览器吗?

Is it possible to make an exact identical POST with HttpWebRequest in C# as a browser would? Without a page being able to detect that it is actually no browser?

如果是这样,我能读更多吗?

If so, were could i read up more on that?

推荐答案

下载并熟悉 Fiddler之类的工具.它使您可以检查从应用程序(如普通浏览器)发出的Web请求,并准确查看正在发送的内容.然后,您可以使用在C#中创建的请求来模拟正在发送的数据,并提供标头,Cookie等的值.

Download and become familiar with a tool like Fiddler. It allows you to inspect web requests made from applications, like a normal browser, and see exactly what is being sent. You can then emulate the data being sent with a request created in C#, providing values for headers, cookies, etc.

这篇关于HttpWebRequest POST数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆