首页 > 解决方案 > 等效于 C# WebClient/WebRequest 中的 curl "--path-as-is"

问题描述

根据定义,CURL 中的参数--path-as-is按原样发送带有 URL 路径的请求,而不进行压缩(不要压缩 URL 路径中的 .. 序列)。

如何使用 WebClient 或 WebRequest 在 C# 中实现相同的行为?

标签: c#curlwebclientwebrequestsystem.net.httpwebrequest

解决方案


推荐阅读