It is currently Sat, 26 Nov 2022 06:22:46 GMT



 
Author Message
 shell script to log http request
Hello all :-),
                  I am not an expert with linux and hence am looking
for some pointers about how to solve a problem I am facing. Any
comments, suggestions or solutions would be very helpful. I have
searched this list and did find one solution pretty close to what I am
looking for but it uses iptables and I was thinking of something
simpler.

The problem: I want to log the URLs requested by a browser on a linux
system into a file.

What I have explored: I installed the Livehttpheaders extension for
firefox, it does log URLs but does not seem to do it continuously to a
file. You have to press the save-all button. I need a continuous
logging mechanism. I have also read up Apache and other web servers
which when installed will do the trick, but I want my script to be
standalone and depend as little as possible on a server/module being
pre-installed. A proxy server could be a solution, Could anyone please
point me to a really small implementation which I can then customize
to just log requests and leave the http connections alone.

The best solution for me, as I see it (feel free to correct me) is a
small script or usage of a command-line utility I may not know as yet
which will simply dump connection/URL to a file. I could use tcpdump/
ethereal(wireshark), but this will be a bad solution compared to a one-
liner or a small script.

Would definitely appreciate any help people!
Thanks in advance,
-A



 Fri, 24 Sep 2010 07:05:34 GMT   
 
   [ 1 post ] 

Similar Threads

1. Issuing http request via bash shell script

2. Make HTTP request from Unix shell script

3. Logging connections and HTTP requests

4. HTTP request header log.

5. log file of http requests

6. How to send http request whit shell programming?

7. Generating an HTTP Request From a Script?

8. A Solaris 8 (Bourne Shell) Scripting question, regarding a log rotation script


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software