HttpWebRequest.GetResponse() keeps getting timed out

前端 未结 5 2093
悲哀的现实
悲哀的现实 2020-12-17 09:16

i wrote a simple C# function to retrieve trade history from MtGox with following API call:

https://data.mtgox.com/api/1/BTCUSD/trades?since=
         


        
5条回答
  •  南笙
    南笙 (楼主)
    2020-12-17 09:41

    There are two kind of timeouts. Client timeout and server timeout. Have you tried doing something like this:

    request.Timeout = Timeout.Infinite;
    request.KeepAlive = true;
    

    Try something like this...

提交回复
热议问题