You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by André Warnier <aw...@ice-sa.com> on 2008/12/02 09:45:08 UTC

Re: [users@httpd] =?UTF-8?B?UmU6RmlsZSB1cGxvYWQgdG8gQXBhY2hlIHNlcnZlciAoUE9TVCk= ?=

prasanthgs@webdunia.com wrote:
[...]
You still have something wrong in the setup of your email program, and 
it still posts a funny subject.

I appreciate that you are a beginner with Apache, and do not want to 
discourage you.  But, really, in the long term you would do yourself a 
big favor by first getting some basic knowledge about HTTP and what 
things like POST etc.. mean, before attempting things left and right.
The thing is, that without this basic knowledge, you are not going to 
understand the results you are getting, and you are going to spend a lot 
of time, of yourself even more as of others, fruitlessly.

Let me give you a first tip :
The POST command that you are using is in fact an alias, for a very nice 
and powerful perl script called "lwp-request". There is another alias 
called GET, for the same program.
If you enter "perldoc lwp-request", you will get a display of the perl 
documentation of that program.
It will tell you, among other things, that
GET is an alias for "lwp-request -m GET"
  and that
POST is an alias for "lwp-request -m POST".
lwp-request is a perl script that is very useful, as it allows you to 
"compose" various kinds of HTTP requests and send them to a webserver, 
and to visualise the response that the webserver is sending back.
Try for instance "GET http://www.google.com"
Then try that same command, but with some of the command switches that 
are available, such as
GET -USed http://www.google.com
Then try
GET -USed http://norealserver.local
and so on.
To see the available switches, just enter "lwp-request" at the command-line.

Do not forget this program.  When you will encounter problems later with 
some web applications or webservers, it is a very useful debugging tool.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org