Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Поиск в Поддержке

Избегайте мошенников, выдающих себя за службу поддержки. Мы никогда не попросим вас позвонить, отправить текстовое сообщение или поделиться личной информацией. Сообщайте о подозрительной активности, используя функцию «Пожаловаться».

Learn More

firefox does not work with my simple http server

  • 1 ответ
  • 1 имеет эту проблему
  • 4 просмотра
  • Последний ответ от cor-el

more options

I'm developing a simple http server. I can generate simple HTTP responses. IE displays the response properly; FF does not.

Here is the response:

       "HTTP/1.1 200 OK\r\n" \

"Host: 127.0.0.1:80\r\n" \ "Date: %s\r\n" \ "Server: SimpleHTTPtutorial v0 %d\r\n" \ "Content-Type: text/html\r\n" \ "Content-Length: 44; charset=ISO-8859-1\r\n" \ "\r\n" \ "blahblah from %d

Does FF require something extra in order to interpret a page? FF responds with a blank page or says the connection was reset.

I'm developing a simple http server. I can generate simple HTTP responses. IE displays the response properly; FF does not. Here is the response: "HTTP/1.1 200 OK\r\n" \ "Host: 127.0.0.1:80\r\n" \ "Date: %s\r\n" \ "Server: SimpleHTTPtutorial v0 %d\r\n" \ "Content-Type: text/html\r\n" \ "Content-Length: 44; charset=ISO-8859-1\r\n" \ "\r\n" \ "<html><body>blahblah from %d</body></html> Does FF require something extra in order to interpret a page? FF responds with a blank page or says the connection was reset.

Все ответы (1)

more options

Looks that the content didn't get processed before it got send, i.e. convert "\r" to CR and "\n" to LF and substituting the %s and %d.


A good place to ask advice about web development is at the mozillaZine Web Development/Standards Evangelism forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the mozillaZine forum site in order to post at that forum.

See http://forums.mozillazine.org/viewforum.php?f=25