c# - How send content body in Http Request with GET method in .Net
问题描述
I need to do a HTTP Request from .Net with method GET and send the data in content body. I would like to do with this .Net Framework and if not posible with .Net Core.
I have try with RestSharp library but return the following error "Http verb GET does not support body", and with webClient return also an error ("Cannot send a content-body with this verb-type.").
Any idea how can I do that?
解决方案
推荐阅读
- php - 无法安装 php mysql_xdevapi 扩展
- python - Python - 在 main 中使用局部变量导入 python 程序
- python - 使用 BS4 从 div 中提取文本的问题
- c - sprintf 和 fwrite() 的分段错误;程序仅适用于 valgrind
- grails - 如何从自定义 Grails 配置文件生成“应用自”而不是“应用插件”?
- azure - 将环境变量动态传递给 Azure 容器实例
- javascript - 为什么我必须单击两次才能触发事件?
- mysql - mysql函数的参数和选择问题
- java - 更改 id 字段的名称
- scala - 为什么 cons 不是 immutable.this.IndexedSeq[List[List[scala.this.Tuple2[scala.this.Char,scala.this.Int]]]] curr :: result 的成员