python local web server

S

shanti bhushan

Hi ,
I want to use the python local web server.
I want to do the following activities with the server.
1. I want to change to configuration of any time ,with the help of
python script.
2. I want to log request and response for the server so ,i can use it
for analysis.

Please guide me in this respect, if this code is already avaialble
please update me.
Please guide me the design or direct me the best approach to do all
this.

Regards
Shanti Bhushan
 
A

alex23

shanti bhushan said:
Please guide me the design or direct me the best approach to do all
this.

The best approach?

1. Study
2. Learn
3. Apply

There you go, the advice that keeps on giving.
 
S

Stephen Hansen

Hi ,
I want to use the python local web server.
I want to do the following activities with the server.
1. I want to change to configuration of any time ,with the help of
python script.
2. I want to log request and response for the server so ,i can use it
for analysis.

Please guide me in this respect, if this code is already avaialble
please update me.
Please guide me the design or direct me the best approach to do all
this.

Python does not have a "local web server". Python's standard library
does include a basic server class that can handle HTTP, if you wish to
use it.

But this is not a standalone sort of server that you configure and run.
It is a piece of code in a library, you instantiate and use. You
configure it by writing code. If you would like to configure it via a
config file, you have to write that. Code to read the file, code to set
up the server class based on it, and such.

Guide you? You're asking too much. Too vague. I wouldn't even know where
to start. You really need to go curl up around the docs and spend some
time reading it-- BaseHTTPServer, SocketServer, BaseHTTPRequestHandler
are where you get all the information you are looking for.

--

Stephen Hansen
... Also: Ixokai
... Mail: me+list/python (AT) ixokai (DOT) io
... Blog: http://meh.ixokai.io/


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.10 (Darwin)

iQEcBAEBAgAGBQJMFwiwAAoJEKcbwptVWx/l4wQH/jtUNmnQmnCFKWQuWsSwUWR9
UYA/nkXTlB4NIdZQ2rskTImK73WbVWLlP18N7JLqfljvuiqXnHUAVNEl6YfeHXlC
j5VAeQ1HP2/EKG525sdh71CclBdPmzjz6klHlglXFvIY35pfe6aHS4CFe3ikByNW
vNTbjF5tlSvus+0IscBoXhy34mnXy9cKYItn7K/ec4ste6U9yjDeuyos6fWu2I+E
rAoxeOAwe/MjGOfzoxwBgVqrlKJHmmzJX1mN4FKR8UglJVQ1h8ifKxv3pd1ME6Ze
eyneGKBsxq3Fo66XACjkds63iLquAKyM9u3nTB7l440gt9MOoEbthkHYJno0358=
=xK/q
-----END PGP SIGNATURE-----
 
J

James Mills

The best approach?

1. Study
2. Learn
3. Apply

There you go, the advice that keeps on giving.

In addition to my good colleagues sound advise:

There are many many web frameworks available in the Python world
of all things wonderful. But first, "Learn Python". Then pick a web
framework that best suites your needs and "Learn" it.

cheers
James
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,990
Messages
2,570,211
Members
46,796
Latest member
SteveBreed

Latest Threads

Top