Error 404
-
I have being wrriten a WebServer.In Web server I send a String Http /1.1 404. When I use IE to test then it can understand but use Firefor is not why is that? please help me?
help me
-
I have being wrriten a WebServer.In Web server I send a String Http /1.1 404. When I use IE to test then it can understand but use Firefor is not why is that? please help me?
help me
What? You need to somehow describe that better. Post it in your native language if you have to... you aren't making sense. What doesn't work in Firefox? It sounds like you are trying to cause a 404, but you are sending it through a string, and not in the HTTP headers, so FF is actually doing it right (displaying what was sent, and not an error), and IE doing something else (displaying an error although no error occurred). A web page that says "Http /1.1 404" is perfectly legal, but if it says 404 in the HEADERS, that's a page not found error.
"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles. -
What? You need to somehow describe that better. Post it in your native language if you have to... you aren't making sense. What doesn't work in Firefox? It sounds like you are trying to cause a 404, but you are sending it through a string, and not in the HTTP headers, so FF is actually doing it right (displaying what was sent, and not an error), and IE doing something else (displaying an error although no error occurred). A web page that says "Http /1.1 404" is perfectly legal, but if it says 404 in the HEADERS, that's a page not found error.
"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles. -
Your question still does not make sense. Can you please try to rephrase the question?
__________________ Bob is my homeboy.
OK,I have being a WebServer, client is IE or Firefox WebServer suppost http 1.0 when Client connect to server http://192.168.1.15/Nhat.txt,then Sever will do: + to client connect +create socket to transfer file to client if Nhat.txt is not Exist then transfer to client "Http /1.1 404" I see IE understand but firefor don't. I want to ask you about String code error 404
help me
-
OK,I have being a WebServer, client is IE or Firefox WebServer suppost http 1.0 when Client connect to server http://192.168.1.15/Nhat.txt,then Sever will do: + to client connect +create socket to transfer file to client if Nhat.txt is not Exist then transfer to client "Http /1.1 404" I see IE understand but firefor don't. I want to ask you about String code error 404
help me
is the 404 being automatically generated by the framework, or by custom code you wrote. IF the latter post the code generating the 404.
-- You have to explain to them [VB coders] what you mean by "typed". their first response is likely to be something like, "Of course my code is typed. Do you think i magically project it onto the screen with the power of my mind?" --- John Simmons / outlaw programmer
-
OK,I have being a WebServer, client is IE or Firefox WebServer suppost http 1.0 when Client connect to server http://192.168.1.15/Nhat.txt,then Sever will do: + to client connect +create socket to transfer file to client if Nhat.txt is not Exist then transfer to client "Http /1.1 404" I see IE understand but firefor don't. I want to ask you about String code error 404
help me
int statuscode=404; String headerbuffer=null; String htmlbuffer=null; htmlbuffer="
Error: "+statuscode+"
"; headerbuffer="HTTP/1.0 "+statuscode+"\r\nContent-Type: text/html\r\nContent-Length: "+htmlbuffer.Length+"\r\n\r\n"; byte[] headerbuff = Encoding.UTF8.GetBytes(headerbuffer); byte[] htmlbuff = Encoding.UTF8.GetBytes(htmlbuffer); s_SocKetManageClient.Send(htmlbuff, 0, htmlbuff.Length, SocketFlags.None); s_SocKetManageClient.Send(headerbuff, 0, headerbuff.Length, SocketFlags.None); this is my code but firefor don't understand and title of IE write HTTP 404 not Found
help me
-
int statuscode=404; String headerbuffer=null; String htmlbuffer=null; htmlbuffer="
Error: "+statuscode+"
"; headerbuffer="HTTP/1.0 "+statuscode+"\r\nContent-Type: text/html\r\nContent-Length: "+htmlbuffer.Length+"\r\n\r\n"; byte[] headerbuff = Encoding.UTF8.GetBytes(headerbuffer); byte[] htmlbuff = Encoding.UTF8.GetBytes(htmlbuffer); s_SocKetManageClient.Send(htmlbuff, 0, htmlbuff.Length, SocketFlags.None); s_SocKetManageClient.Send(headerbuff, 0, headerbuff.Length, SocketFlags.None); this is my code but firefor don't understand and title of IE write HTTP 404 not Found
help me
Why on God's Green Earth are you using Sockets for this???!!! Use the http classes in the .Net framework and save yourself a lot of headaches. This isn't even worth discussing if you want to use sockets.
"Quality Software since 1983!"
http://www.smoothjazzy.com/ - see the "Programming" section for freeware tools and articles.