locked
Downloading an URL with more than 2100 chars length RRS feed

  • General discussion

  • I have a very long url string, like here: http://tinyurl.com/c7hmhnu If I try to download it, the whole app just crashes. Is there a possibility to download the content? I have tried to use WebClient, WebBrowser and HttpRequest objects. All of them failed. :(
    Monday, November 14, 2011 12:05 PM

All replies

  • Read this Stack Overflow question.  While the official standard for HTTP says that there should be no maximum, in reality there are maximums.  IE 8 and IE 9 have an upper bound of 2083 characters.  All browsers have some limit.  I would say that Windows Phone has a similar limit to IE 8 and 9.

    You could try forming the HTTP query yourself and send it via a TCP socket.

    The other way of thinking about it is that any URL that long is broken.
    Monday, November 14, 2011 12:16 PM