W3C home > Mailing lists > Public > ietf-http-wg-old@w3.org > May to August 2000

RE: problem with responses to post-requests

From: Joris Dobbelsteen <joris.dobbelsteen@mail.com>
Date: Sun, 27 Aug 2000 13:17:26 +0200
To: "WWW WG (E-mail)" <http-wg@cuckoo.hpl.hp.com>
Message-ID: <000001c010e9$88fd4d20$0e0ba8c0@THUIS.LOCAL>
Are you sure "\n" (C++) represents CRLF or only a CR???

I thought it represents only the CR. Maybe this is the problem, because
RFC2616 requires you to send only CRLF in the headers and
status/'command'-line.

- Joris

> -----Original Message-----
> From: OSeemann@gmx.net [mailto:OSeemann@gmx.net]
> Sent: vrijdag 25 augustus 2000 12:32
> To: http-wg@cuckoo.hpl.hp.com
> Subject: problem with responses to post-requests
>
>
> i've got a problem while responding to POST requests.
>
> i'm currently developing a small http-server to configure
> some files via a
> webbrowser.
>
> while sending responses to GET requests everything works fine and the
> browser prints the output. but if i try to handle a post
> request i encounter
> different reactions by netscape navigator and internet explorer.
>
> after processing the content of the post-request i'm sending the
> html-output to the client and close the connection. this
> works fine with NN. but IE
> doesn't show the page and gives an error-msg telling me that
> the connection
> has been reset.
>
> i just don't get it why NN is doing fine and IE not.
>
> what's the difference between responses to GET and POST requests ?
>
> why is IE telling me errors and not showing the transmitted page ?
>
>
> greetings,
> olli
>
>
> here's some of the code:
>
> while ((conn = accept(sock,(struct sockaddr *)
> &addr,&addr_length)) >= 0)
> {
>  /*
>   reading/parsing header etc.
>  */
>
> if (strcmp(request->method,"POST") == 0)
> {
>  putsock(conn,"HTTP/1.0 200 OK\n");
>  putsock(conn,"Content-Type: text/plain\n\n");
>  putsock(conn,"Netscape Navigator shows this.\
>               Internet Explorer gives error");
> }
>
> // here NN says "Document Done" and shows the page
> // but IE gives error msg "Connection Reset"
> close(conn);
> }
>
>
> --
> Sent through GMX FreeMail - http://www.gmx.net
>
>
Received on Monday, 28 August 2000 13:17:44 EDT

This archive was generated by hypermail pre-2.1.9 : Wednesday, 24 September 2003 06:33:38 EDT