HttpWebRequest and GetResponse hangs after 1 request; other solutions doesn't work for me

前端 未结 1 1140
-上瘾入骨i
-上瘾入骨i 2020-12-18 16:28

I have set up a connection to Googles C2DM system. It works - sort of.

When I ask C2DM to \"ping\" my Android device, it does so sometimes, but far from always. The

相关标签:
1条回答
  • 2020-12-18 17:06

    haha, it seems like I have to answer my own question again =)

    So, I spent the last 48 hours testing, reading, searching for a solution to the HttpWebRequest problem, or rather the problem with HTTP requests.

    All the suggestions I found was of no use to me, except this one:

    http://www.eggheadcafe.com/community/vb/14/60113/webclient-to-http-post--error-on-receive.aspx

    There is says that

    After much research on the internet I stumbled upon suggestions that said to set Keep-Alive to FALSE and to use HTTP1.0.

    but he also notes that it didn't work for him:

    However, when I try to use that function, I am unable to successfully perform ANY POSTs on EITHER machine - my home or work PC

    However, it seems to have solved my issue completely!

    Lets hope it sticks =)

    0 讨论(0)
提交回复
热议问题