Re: HttpWebRequest.GetResponse() Querystring length problem

Tech-Archive recommends: Fix windows errors by optimizing your registry



"Kamii47" <Kamii47@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote ...

I found a weird behavior of HttpWebRequest.GetResponse() in WM5

It raises exception if length of URL is around 2150. And also sends the
data
to server successfully. Therefore, there is no way to detect that the data
is
successfully received at server or not.

I believe that is a function of IIS, which limits the size of GET URL's for
security purposes. I also don't think your entire GET request is making it
to the server. That's where your exception is originating.

I suggest you use a POST request or do a search on communicating with the
server using Script tags from Javascript.

--
Regards,

Fred Chateau
fchateauAtComcastDotNet


.



Relevant Pages

  • Re: 6.0.28000.1106 - "Content-Length" of "0" problems
    ... Wininet retries POST requests with a blank header ... password) to a Web server retry the POST request with a blank header if the ... Web server closes the initial connection request. ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: HTTP request problem
    ... "Extra CRLF Character Is Added to a POST Request That Is Sent to an HTTP 1.1 ... it thinks that it is communicating with an HTTP 1.0-based server ... ...
    (microsoft.public.win32.programmer.networks)
  • Re: Disable Front Page confirnation
    ... A form, when posted, sends a POST request to the server. ... you can't "disable" the confirmation page. ... > successfully submitting a form to a database? ...
    (microsoft.public.frontpage.programming)
  • Re: why use $_POST when you have $_SESSION?
    ... data from the client to the server, ... used to send data TO the server. ... i.e. by opening a socket and sending a POST request. ... The difference is that when you use a bookmark, ...
    (comp.lang.php)
  • Re: IIS6 POST request failing with 500 error
    ... writing an app to simulate the post request, although I can replicate it via ... It seems to be some part of the HTTP request that IIS6 is incredibly ... but now we have changed suppliers and the exact same thing is ...
    (microsoft.public.inetserver.iis)