Closed
Bug 37778
Opened 25 years ago
Closed 25 years ago
browser doesn't handle simple response of HTTP protocol
Categories
(Core :: Networking, defect, P3)
Tracking
()
CLOSED
FIXED
M17
People
(Reporter: gvu, Assigned: ruslan)
References
Details
I created a simple form and used Mozilla(build#15) to post my data into the CGI
server. The CGI server reponsed back to the browser in simple response of HTTP
protocol, which only sent back the body entity, and Mozilla somehow did not
recogize and parse the response.
build#15==milestone 15?
please respond with a url of a sample cgi script source [plus live link would
be nice] that demonstrates the problem. Also, what browser behaves correctly,
netscape 4?
I don't have a live link but I already fixed my bug by making CGI send back in
the full-response format. The browsers which behave correctly for the simple-
response are IE4, IE5 and NS4.
Comment 4•25 years ago
|
||
Reporter:
Even though you have fixed the problem, if it's really a problem the Mozilla
developers should know about it. Please post here the code you were originally
using that works in other browsers but does not work in Mozilla. Then we'll try
to fix it and you'll be able to use it in future code, not to mention everyone
else developing similar solutions won't have to figure out the same problem.
I don't have a code because it is C code on server side. If you want to
reproduce the problem, you have to make the server send data to the browser in
SIMPLE-response which means it doesn't send the the status line in the response.
Comment 6•25 years ago
|
||
This sounds familiar - and is not specific to form submission.
I believe the reporter means something like this is "full response":
-------- begin server response --------
HTTP/1.1 200 OK
Content-type: text/html
<HTML>
<BODY>
Test
</BODY>
</HTML>
-------- end server response --------
and something like this is "simple response":
-------- begin server response --------
<HTML>
<BODY>
Test
</BODY>
</HTML>
-------- end server response --------
Giac, is this correct?
Right. You are right and this bug doesn't relate to form submission.
Comment 8•25 years ago
|
||
This is a general networking problem, forwarding on to networking people.
Thanks!
Assignee: pollmann → warren
Component: Form Submission → Networking
Comment 9•25 years ago
|
||
Changing QAContact to tever@netscape.com due to bug's re-assignment to
Networking...
QA Contact: ckritzer → tever
Assignee | ||
Comment 11•25 years ago
|
||
I didn't even know such responses were allowed in the first place, but Ok. Did
0.9 spec allow such response?
Status: UNCONFIRMED → NEW
Ever confirmed: true
Target Milestone: --- → M17
Reporter | ||
Comment 12•25 years ago
|
||
spec for 1.0 has such response and 1.1 doesn't, but IE4,IE5 and NS6 do handle
that response.
Reporter | ||
Comment 14•25 years ago
|
||
I don't have a live url because I am working on it internally in my company.
Assignee | ||
Comment 15•25 years ago
|
||
Is there a link for me to test the fix?
Reporter | ||
Comment 16•25 years ago
|
||
I don't have a link, but I can test it with my code if I can have a new build.
Assignee | ||
Comment 17•25 years ago
|
||
Fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 18•25 years ago
|
||
That's great. I can get the new build on tomorrow and test it then.
Reporter | ||
Comment 19•25 years ago
|
||
When will your fix be in the build? I just got the new build this morning. I
tested it and it still doesn't work yet.
Reporter | ||
Comment 20•25 years ago
|
||
Do you have a live link that I can test your fix?
thanks,
Giac.
Assignee | ||
Comment 21•25 years ago
|
||
I used test server from netwerk/testserver and it worked just fine for me.
Reporter | ||
Comment 22•25 years ago
|
||
Does the last build contain your fix?
Assignee | ||
Comment 23•25 years ago
|
||
yes it does
Reporter | ||
Comment 24•25 years ago
|
||
well, my test code doesn't work. I will try to give you the link so that you
can test it.
Assignee | ||
Comment 25•25 years ago
|
||
Please do.
Reporter | ||
Comment 26•25 years ago
|
||
The test url is:
http://216.100.236.112/test/indextest.html.
When you hit the submit button you will receive the respose back in the Simple-
mode. If you try it with NS4,IE4 and IE5, you will see the error dialog and the
bottom frame goes blank. If you try it with Mozilla, you will see nothing
happen.
Reporter | ||
Comment 27•25 years ago
|
||
Please let me know wherether you can access to that page or not.
Thanks,
Giac.
Assignee | ||
Comment 28•25 years ago
|
||
I can access it, but when I hit submit NS4 displays some javascript error, is it
allright?
Reporter | ||
Comment 29•25 years ago
|
||
right. That's what you are supposed to see on NS4. But on NS6, you will not see
that error becuase the browser doesn't pick up the respone sent back.
Reporter | ||
Comment 30•25 years ago
|
||
I meant Mozilla instead of NS6.
Reporter | ||
Comment 31•25 years ago
|
||
Ruslan,
Are you working on the bug now?..if you have any question about my CGI server
and the testing code, you can feel free to ask.
Giac.
Assignee | ||
Comment 32•25 years ago
|
||
Yes. Please create a link which I can use without POST (so I can telnet into it
quickly and see what's coming out) and if it doesn't work - reopen a bug. I
tested my fix with simple response via test server and it worked for me.
Reporter | ||
Comment 33•25 years ago
|
||
This bug only happen on the POST request because there is the routine which
handles the POST request and send back the SIMPLE response. GET request works
just fine. If you want to see what coming out, you can use the tool like
EtherPeek to look at the packets going between my server and your computer. I
just downloaded mozilla source code for Window. Can you tell me how to compile
the project?
Thank,
Giac.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Comment 34•25 years ago
|
||
I can access the url you've specified and I can see the dialog box. The response
which is coming back is not a simple response, but HTTP/1.0 response. Are you
sure it's not a setup error?
Reporter | ||
Comment 35•25 years ago
|
||
You can try it again. It should be a simple response now.
Assignee | ||
Comment 36•25 years ago
|
||
Still works for me
Reporter | ||
Comment 37•25 years ago
|
||
It doesn't work for me and I use the build from last Friday. I will get the new
build to test it and let you know.
Assignee | ||
Comment 38•25 years ago
|
||
Ok. I'm using the link from the bug report. There's nothing changed between
friday and today. Let me know.
Assignee | ||
Comment 39•25 years ago
|
||
Ok. I'm seeing a different behavior with NS4 and Mozilla. NS4 would display a
dialog box complaining about CGI function not defined. Mozilla would present an
authentication dialog. The response is NOT a simple response; in the debugger I
can clearly see HTTP/1.0 coming back in the status line
Reporter | ||
Comment 40•25 years ago
|
||
:)))..yes..it works now...the new build this morning has the fix in it...
Thanks a lot,
Giac.
Assignee | ||
Comment 41•25 years ago
|
||
closing then
Status: REOPENED → RESOLVED
Closed: 25 years ago → 25 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 43•25 years ago
|
||
*** Bug 38613 has been marked as a duplicate of this bug. ***
You need to log in
before you can comment on or make changes to this bug.
Description
•