GetRequestStream() is throwing time out exception when posting data to HTTPS url

前端 未结 5 1765
悲&欢浪女
悲&欢浪女 2021-02-07 06:34

I\'m calling an API hosted on Apache server to post data. I\'m using HttpWebRequest to perform POST in C#.

API has both normal HTTP and secure layer (HTTPS) PORT on the

5条回答
  •  春和景丽
    2021-02-07 07:16

    You may want to set timeout property, check it here http://www.codeproject.com/Tips/69637/Setting-timeout-property-for-System-Net-WebClient

提交回复
热议问题