Invoking a URL - c#

后端 未结 5 2071
渐次进展
渐次进展 2021-01-11 21:27

I m trying to invoke a URL in C#, I am just interested in invoking, and dont care about response. When i have the following, does it mean that I m invoking the URL?

5条回答
  •  渐次进展
    2021-01-11 21:43

    Probably not. See: http://www.codeproject.com/KB/webservices/HttpWebRequest_Response.aspx

    You're allowed to set the Method, ContentType, etc., all which would have to be done before the request is actually sent. It looks like GetResponse() actually sends the request. You can simply ignore the return value.

提交回复
热议问题