Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
About the web server in chapter 13
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
reverland  
View profile  
 More options May 11 2012, 10:44 pm
From: reverland <lht...@gmail.com>
Date: Fri, 11 May 2012 19:44:13 -0700 (PDT)
Local: Fri, May 11 2012 10:44 pm
Subject: About the web server in chapter 13

I'm a newbie in lisp,and i was atractted by this interesting
book.However,when I tried the webserver provided in the chapter 13,a
problem puzzled me.
my firefox get the stream as the plain text rather than html format.
I'was confused so I tried konqueror as well,the server even didn't work!
Then I tried opera,plain text as well.
I tried to read the http request through firebugs to find something,but
didn't have any idea about the problem
I tried to resort to google but it didn't help either.

Is there any one that have any idea about solving this problem?
Thanks,and be sorry for poor English.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Purity Control  
View profile  
 More options May 12 2012, 3:49 am
From: Purity Control <cr...@puritycontrol.net>
Date: Sat, 12 May 2012 00:49:47 -0700 (PDT)
Local: Sat, May 12 2012 3:49 am
Subject: Re: About the web server in chapter 13

Hi @reverland,

Your English is just fine, dont worry about it.

The problem with things like web servers are there are so many things that
could be wrong and they may not be to do with lisp.

The other problem is that it sounds like you are trying to learn about two
things at the same time; making a web serve and programming lisp. This is
not a problem but don't confuse not understanding lisp with not getting a
web server up and running.

It sounds like the output being sent is being read in as plain text rather
than html. These options are set by mime types.

The first thing I would do is use telnet to connect to the server and see
what response you get back. This will show that lisp is working and sending
information out on the port (we know that already because some web servers
are showing information). But it will also show you the text your web
server is sending on a successful connection.

You can google the responses that a web server should accept and respond
to. A good starting place is here

http://en.wikipedia.org/wiki/Hypertext_Transfer_Protocol

The you will need to use a little detective work and trial and error to
work out where your problems are.

Good Luck with the learning!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yuyang Liu  
View profile  
 More options May 12 2012, 4:44 am
From: Yuyang Liu <lht...@gmail.com>
Date: Sat, 12 May 2012 16:44:58 +0800
Local: Sat, May 12 2012 4:44 am
Subject: Re: About the web server in chapter 13

Thanks for detailed response,It's really helpful.
I don't know much about telnet,but I've found some important clues in
wikipedia.
Then I added a line before the server response followed with a blank line:
HTTP/1.1 200 OK
wonderfully it worked!!
Thanks again!

2012/5/12 Purity Control <cr...@puritycontrol.net>

--
yours sincerely
Reverland
Lyy

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
reverland  
View profile  
 More options Jul 2 2012, 1:29 am
From: reverland <lht...@gmail.com>
Date: Sun, 1 Jul 2012 22:29:10 -0700 (PDT)
Local: Mon, Jul 2 2012 1:29 am
Subject: Re: About the web server in chapter 13

You'd better keep the html standards if you want the server worked under
firefox10 or higher.Some change is needed,such as
<html><head><head/><body>...<body/><html/>,and HTTP/1.1 200 OK followed
with a blank line.
在 2012年5月12日星期六UTC+8上午10时44分13秒,reverland写道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »