首页 > 解决方案 > 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?

标签: c#.netvb.net.net-core.net-framework-4.8

解决方案


推荐阅读