Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/306.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 如何从fiddler获取原始头并发布到http webRequest_C#_Httprequest_Fiddler - Fatal编程技术网

C# 如何从fiddler获取原始头并发布到http webRequest

C# 如何从fiddler获取原始头并发布到http webRequest,c#,httprequest,fiddler,C#,Httprequest,Fiddler,当我查看fiddler原始数据时,我会看到大约15行数据进入服务器。我想把它放回去,就像我说重播请求时小提琴一样。我不只是想添加标题,而是希望返回完整的请求。也就是说,我想推动一些类似于我下面的内容(在c#中) 有什么建议吗 POST https://www.smith.com/account/signin?returnurl=%2Faccount%2Fsignin%3Freturnurl%3D%252F HTTP/1.1 Host: www.smith.com Connection: keep

当我查看fiddler原始数据时,我会看到大约15行数据进入服务器。我想把它放回去,就像我说重播请求时小提琴一样。我不只是想添加标题,而是希望返回完整的请求。也就是说,我想推动一些类似于我下面的内容(在c#中)

有什么建议吗

POST https://www.smith.com/account/signin?returnurl=%2Faccount%2Fsignin%3Freturnurl%3D%252F HTTP/1.1
Host: www.smith.com
Connection: keep-alive
Content-Length: 81
Cache-Control: max-age=0
Origin: https://www.smith.com
User-Agent: Mozilla/5.0 (Windows NT 6.2; WOW64) AppleWebKit/537.11 (KHTML, like Gecko) Chrome/23.0.1271.97 Safari/537.11
Content-Type: application/x-www-form-urlencoded
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Referer: https://www.smith.com/account/signin
Accept-Encoding: 
...

您可以使用常规套接字发送文本。。。这将是发送准确副本的最简单方法。您可以尝试将准确的原始数据复制到中。您没有指定为什么不想通过按“R”或使用编写器在Fiddler中简单地重播。但是,假设您希望在C#应用程序或其他应用程序中使用此功能,只需下载Fiddler的RequestToCode扩展,它将您的请求输出为.NET代码。谢谢。很不错的。“请求代码”。多好的概念啊:)。我还真的想要一个“创建斯托夫马耶普的请求”。