Re: Python web server weirdness SOLVED

2018-06-07 Thread Gregory Ewing
Steven D'Aprano wrote: Never mind -- it turned out I had an "index.html" file in the directory which had been wget'ed from LiveJournal. That's okay, then. The other possibility was that your computer had been recruited into an evil botnet set up by LiveJournal to create backup servers for their

Re: Python web server weirdness

2018-06-07 Thread Steven D'Aprano
On Thu, 07 Jun 2018 13:32:10 +, Steven D'Aprano wrote: > python3.5 -m http.server 8000 [...] Thank you to everyone who responded, pointing out that I should check for an index.html file. That was exactly the problem. And yes, I acknowledge that my original post was lacking in some necessa

Re: Python web server weirdness

2018-06-07 Thread Tim Chase
On 2018-06-07 13:32, Steven D'Aprano wrote: > I'm following the instructions here: > > https://docs.python.org/3/library/http.server.html > > and running this from the command line as a regular unprivileged > user: > > python3.5 -m http.server 8000 > > What I expected was a directory listing of

Re: Python web server weirdness

2018-06-07 Thread Ed Kellett
On 2018-06-07 14:32, Steven D'Aprano wrote: > I'm following the instructions here: > > https://docs.python.org/3/library/http.server.html > > > and running this from the command line as a regular unprivileged user: > > python3.5 -m http.server 8000 > > What I expected was a directory listing o

Re: Python web server weirdness SOLVED

2018-06-07 Thread Steven D'Aprano
On Thu, 07 Jun 2018 13:32:10 +, Steven D'Aprano wrote: [...] > python3.5 -m http.server 8000 > > What I expected was a directory listing of my current directory. > > What I got was Livejournal's front page. Never mind -- it turned out I had an "index.html" file in the directory which had b

Re: Python web server weirdness

2018-06-07 Thread Grant Edwards
On 2018-06-07, Steven D'Aprano wrote: > I'm following the instructions here: > > https://docs.python.org/3/library/http.server.html > > > and running this from the command line as a regular unprivileged user: > > python3.5 -m http.server 8000 > > What I expected was a directory listing of my curre

Re: Python web server weirdness

2018-06-07 Thread Grant Edwards
On 2018-06-07, Steven D'Aprano wrote: > I'm following the instructions here: > > https://docs.python.org/3/library/http.server.html > > > and running this from the command line as a regular unprivileged user: > > python3.5 -m http.server 8000 > > What I expected was a directory listing of my curre

Python web server weirdness

2018-06-07 Thread Steven D'Aprano
I'm following the instructions here: https://docs.python.org/3/library/http.server.html and running this from the command line as a regular unprivileged user: python3.5 -m http.server 8000 What I expected was a directory listing of my current directory. What I got was Livejournal's front page

Re: Python loop and web server (bottle) in the same script (Posting On Python-List Prohibited)

2017-11-29 Thread zljubisic
Processing is I/O and CPU bound. :( -- https://mail.python.org/mailman/listinfo/python-list

Re: Python loop and web server (bottle) in the same script (Posting On Python-List Prohibited)

2017-11-24 Thread Gregory Ewing
Lawrence D’Oliveiro wrote: I naturally concluded that you didn’t care about updates being momentarily held up by a web request in progress--which would happen anyway if you used threads, at least with CPython. Not necessarily -- the web processing is probably I/O bound, in which case the GIL wi

Re: Python loop and web server (bottle) in the same script (Posting On Python-List Prohibited)

2017-11-24 Thread zljubisic
That's right. Update task has precedence. Looks like it is not an easy task. Regards. -- https://mail.python.org/mailman/listinfo/python-list

Re: Python loop and web server (bottle) in the same script (Posting On Python-List Prohibited)

2017-11-24 Thread Gregory Ewing
Lawrence D’Oliveiro wrote: On Friday, November 24, 2017 at 3:27:17 AM UTC+13, zlju...@gmail.com wrote: Looks like I need some sort of parallelization. This is why coroutines were added to Python. Threading is notoriously bug-prone, and is best avoided in most situations. The OP claimed tha

Re: Python loop and web server (bottle) in the same script

2017-11-23 Thread Chris Angelico
On Fri, Nov 24, 2017 at 1:27 AM, wrote: > I would like to have a script that collects data every minute and at the same > time serve newly collected data as web pages. > > Timely collecting data is more important than serving web pages, so > collecting data should have priority and should never

Python loop and web server (bottle) in the same script

2017-11-23 Thread zljubisic
idea was to use (while) loop and a bottle web server, so I wrote a program in which for loop simulates collecting data and bottle simulates web server that server newly collected data as web pages: from bottle import route, run, request, template, static_file import time x = 0 @route('/test&

Re: SQLite3 and web server

2015-08-22 Thread Peter Otten
Cecil Westerhof wrote: > On Saturday 22 Aug 2015 09:51 CEST, Peter Otten wrote: > >> Cecil Westerhof wrote: >> >>> Thanks. I made a first try: >>> https://github.com/CecilWesterhof/PublishedPhotos >>> >>> The thing I do not like is that all my static files have to be put >>> in /static/, but I th

Re: SQLite3 and web server

2015-08-22 Thread Cecil Westerhof
On Friday 21 Aug 2015 16:57 CEST, Michael Torrie wrote: > On 08/21/2015 08:19 AM, Michael Torrie wrote: >> But of course you can use straight CGI with Apache too. Probably >> this is the easiest way for you to get started. Don't try to run >> your own http server. That's just a waste of time and e

Re: SQLite3 and web server

2015-08-22 Thread Cecil Westerhof
On Saturday 22 Aug 2015 09:51 CEST, Peter Otten wrote: > Cecil Westerhof wrote: > >> Thanks. I made a first try: >> https://github.com/CecilWesterhof/PublishedPhotos >> >> The thing I do not like is that all my static files have to be put >> in /static/, but I think I can life with it. > > Is that

Re: SQLite3 and web server

2015-08-22 Thread Peter Otten
Cecil Westerhof wrote: > Thanks. I made a first try: > https://github.com/CecilWesterhof/PublishedPhotos > > The thing I do not like is that all my static files have to be put in > /static/, but I think I can life with it. Is that really required by bottle? Where would you like to put the files?

Re: SQLite3 and web server

2015-08-21 Thread Cecil Westerhof
er.com/sql-databases/accessing-an-sqlite-database-with-python.html > > As to the traceback you reported, I don't know enough about using > http.server and socketserver to answer. Typically web development in > Python is done via WSGI protocol, in conjunction with a web server > like

Re: SQLite3 and web server

2015-08-21 Thread Cecil Westerhof
On Friday 21 Aug 2015 11:32 CEST, Peter Otten wrote: > Cecil Westerhof wrote: > >> At the moment I serve a AngularJS web application with: >> python3 -m http-server >> >> This only servers static html pages with the data contained in js >> files, like: >> $scope.links = [ >> { desc: 'Album',

Re: SQLite3 and web server

2015-08-21 Thread Michael Torrie
On 08/21/2015 08:19 AM, Michael Torrie wrote: > But of course you can use straight CGI with Apache too. Probably this > is the easiest way for you to get started. Don't try to run your own > http server. That's just a waste of time and effort. Run the CGIs under > Apache. Google for Apache CGI

Re: SQLite3 and web server

2015-08-21 Thread Michael Torrie
7;t know enough about using http.server and socketserver to answer. Typically web development in Python is done via WSGI protocol, in conjunction with a web server like Apache using mod_wsgi[1], which is available in most distro's repos. But of course you can use straight CGI with Apache

Re: SQLite3 and web server

2015-08-21 Thread Cecil Westerhof
On Friday 21 Aug 2015 09:27 CEST, Chris Angelico wrote: > On Fri, Aug 21, 2015 at 5:13 PM, Cecil Westerhof wrote: >> I know how to work with SQLite. What I do not know how to make a >> python web-server that accepts a request from the JavaScript code >> and responds with

Re: SQLite3 and web server

2015-08-21 Thread Peter Otten
Cecil Westerhof wrote: > At the moment I serve a AngularJS web application with: > python3 -m http-server > > This only servers static html pages with the data contained in js > files, like: > $scope.links = [ > { desc: 'Album',url: > { 'https://plu

Re: SQLite3 and web server

2015-08-21 Thread Chris Angelico
On Fri, Aug 21, 2015 at 5:13 PM, Cecil Westerhof wrote: > I know how to work with SQLite. What I do not know how to make a > python web-server that accepts a request from the JavaScript code and > responds with data from the SQLite3 database. The request from JS will be some sor

Re: SQLite3 and web server

2015-08-21 Thread Cecil Westerhof
ion, I'm in the same position as > someone telling terrorists how best to build a dirty bomb. Oh well. > > https://docs.python.org/3/library/sqlite3.html > > But surely you need to find out how to access Sqlite from > Javascript, not Python? This doesn't seem to be relat

Re: SQLite3 and web server

2015-08-20 Thread Steven D'Aprano
esn't seem to be related to Python in any way. Just because the web server is written in Python doesn't mean that it's a Python problem. Your web page is generated from Javascript, not Python. Making-the-Internet-a-worse-place-one-piece-of-Javascript-at-a-time-ly y'rs, --

SQLite3 and web server

2015-08-20 Thread Cecil Westerhof
At the moment I serve a AngularJS web application with: python3 -m http-server This only servers static html pages with the data contained in js files, like: $scope.links = [ { desc: 'Album',url: 'https://plus.google.com/collection/MuwPX' },

Re: Built-in Python3 web server functionality - wsgiref & http.server

2015-06-07 Thread Chris Angelico
On Mon, Jun 8, 2015 at 5:13 AM, Eric wrote: > I am trying to better understand the built-in python3 web server > functionality and have just started reading the documentation. > > There seem to be two options provided by Python 3. > > 1. > wsgiref > https://docs.python.or

Built-in Python3 web server functionality - wsgiref & http.server

2015-06-07 Thread Eric
I am trying to better understand the built-in python3 web server functionality and have just started reading the documentation. There seem to be two options provided by Python 3. 1. wsgiref https://docs.python.org/3/library/wsgiref.html 2. http.server https://docs.python.org/3/library

Re: Web Server for Python

2013-12-16 Thread Denis McMahon
On Mon, 16 Dec 2013 19:20:20 -0800, Mura Zalukhu wrote: > Could you give me the best tutorial / web for python. For example how to > make a connection with database. Which database? Which version of Python? Google may help. So will the Python on-line documentation. -- Denis McMahon, denismfmcm

Re: Web Server for Python

2013-12-16 Thread Mura Zalukhu
Hi David, Thanks for your reply, i will learn it. Could you give me the best tutorial / web for python. For example how to make a connection with database. Thanks so much On Tuesday, December 17, 2013 9:40:56 AM UTC+7, david@gmail.com wrote: > Hi Mura, > > > apache is used as a proxy with p

Re: Web Server for Python

2013-12-16 Thread david.gar...@gmail.com
Hi Mura, apache is used as a proxy with python. You would fire up your python web app and put apache in front of it. Apache does come these days with wsgi https://code.google.com/p/modwsgi/ that can be added to apache as module, something like mod_wsgi can be used for your python web app. PHP is a

Web Server for Python

2013-12-16 Thread Mura Zalukhu
Hi all, I am a newbiew for python, i want to improve my programming for python. but i have searching any tutorial to configuration python for webserver but no one of tutorial solved my problem. could you give me how to configuration ptyhon on webserver like apache / php or Thanks so much -- http

What web server for WSGI? Recommended book?

2013-03-27 Thread Gilles
Hello After going through multiple articles about the advantage of using WSGI instead of FastCGI + Flup to run Python web apps, I have a couple of questions: 1. Which server + WSGI module would you recommend? I know about Apache and Graham Dumpleton's mod_wsgi, but what about Lighttpd and

python simple web server

2012-03-06 Thread queency jones
hello pythonist i'm developing using the simple / basic http server i got very bad performance regarding to request time . 9 sec for each request replay. i tried to test this with this: python -m SimpleHTTPServer 8080 but no better. any sugestions ? that i can use ? my final goal is to serv 5 pe

Re: standalone python web server

2012-02-09 Thread Rita
e > > Python. I was wondering if there was a easy and medium performance > > python based web server available. > > Are you going to use a framework? Most of these ship with a light > web server implementation… You probably want to check these out too… > > I

Re: standalone python web server

2012-02-09 Thread Thomas Bach
Rita writes: > I am building a small intranet website and I would like to use > Python. I was wondering if there was a easy and medium performance > python based web server available. Are you going to use a framework? Most of these ship with a light web server implementation… You prob

Re: standalone python web server

2012-02-08 Thread anon hung
>> I am building a small intranet website and I would like to use Python. I >> was wondering if there was a easy and medium performance python based web >> server available. I would like to run it on port :8080 since I wont have >> root access also I prefer something easy t

Re: standalone python web server

2012-02-08 Thread Roy Smith
In article , Rodrick Brown wrote: > On Feb 8, 2012, at 11:01 PM, Rita wrote: > > > I am building a small intranet website and I would like to use Python. I > > was wondering if there was a easy and medium performance python based web > > server available. I woul

Re: standalone python web server

2012-02-08 Thread Rodrick Brown
On Feb 8, 2012, at 11:01 PM, Rita wrote: > I am building a small intranet website and I would like to use Python. I was > wondering if there was a easy and medium performance python based web server > available. I would like to run it on port :8080 since I wont have root access

standalone python web server

2012-02-08 Thread Rita
I am building a small intranet website and I would like to use Python. I was wondering if there was a easy and medium performance python based web server available. I would like to run it on port :8080 since I wont have root access also I prefer something easy to deploy meaning I would like to

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-19 Thread Paul Rubin
Steven D'Aprano writes: >> Supply the client with tamper-proof hardware containing a private key. > > Is that resistant to man-in-the-middle attacks by somebody with a packet > sniffer watching the traffic between the device and the website? Sure, why not? As long as the crypto is done properly

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-19 Thread Steven D'Aprano
On Sun, 19 Jun 2011 05:47:30 +0100, Nobody wrote: > On Sat, 18 Jun 2011 04:34:55 -0700, mzagu...@gmail.com wrote: > >> I am wondering what your strategies are for ensuring that data >> transmitted to a website via a python program is indeed from that >> program, and not from someone submitting PO

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Nobody
On Sat, 18 Jun 2011 04:34:55 -0700, mzagu...@gmail.com wrote: > I am wondering what your strategies are for ensuring that data > transmitted to a website via a python program is indeed from that > program, and not from someone submitting POST data using some other > means. > Any remedy? Supply t

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Chris Angelico
On Sun, Jun 19, 2011 at 10:38 AM, Gregory Ewing wrote: > And that only if the attacker isn't a Python programmer. > If he is, he's probably writing his attack program in > Python anyway. :-) > I was thinking you'd have it call on various functions defined elsewhere in the program, forcing him to

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Gregory Ewing
Michael Hrivnak wrote: Besides, it seems that all you've accomplished is verifying that the client can execute python code and you've made it a bit less convenient to attack. And that only if the attacker isn't a Python programmer. If he is, he's probably writing his attack program in Python an

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Chris Angelico
On Sun, Jun 19, 2011 at 6:40 AM, Michael Hrivnak wrote: > On Sat, Jun 18, 2011 at 1:26 PM, Chris Angelico wrote: >> SSL certificates are good, but they can be stolen (very easily if the >> client is open source). Anything algorithmic suffers from the same >> issue. > > This is only true if you di

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Terry Reedy
On 6/18/2011 7:34 AM, mzagu...@gmail.com wrote: Hello Folks, I am wondering what your strategies are for ensuring that data transmitted to a website via a python program is indeed from that program, and not from someone submitting POST data using some other means. I find it likely that there is

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Paul Rubin
ta upload page. Any remedy? If you're concerned about unauthorized users posting random crap, the obvious solution is configure your web server to put password protection on the page. If you're saying AUTHORIZED users (those allowed to use the program to post stuff) aren't trusted t

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Michael Hrivnak
On Sat, Jun 18, 2011 at 1:26 PM, Chris Angelico wrote: > SSL certificates are good, but they can be stolen (very easily if the > client is open source). Anything algorithmic suffers from the same > issue. This is only true if you distribute your app with one built-in certificate, which does indee

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Tim Roberts
"mzagu...@gmail.com" wrote: > >For example, if I create a website that tracks some sort of >statistical information and don't ensure that my program is the one >that is uploading it, the statistics can be thrown off by people >entering false POST data onto the data upload page. Any remedy? The a

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Chris Angelico
On Sat, Jun 18, 2011 at 9:34 PM, mzagu...@gmail.com wrote: > I am wondering what your strategies are for ensuring that data > transmitted to a website via a python program is indeed from that > program, and not from someone submitting POST data using some other > means.  I find it likely that ther

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Michael Hrivnak
Authentication by client SSL certificate is best. You should also look into restricting access on the server side by IP address. Michael On Sat, Jun 18, 2011 at 7:34 AM, mzagu...@gmail.com wrote: > Hello Folks, > > I am wondering what your strategies are for ensuring that data > transmitted to

Re: Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread Eden Kirin
On 18.06.2011 13:34, mzagu...@gmail.com wrote: Hello Folks, I am wondering what your strategies are for ensuring that data transmitted to a website via a python program is indeed from that program, and not from someone submitting POST data using some other means. I find it likely that there is

Strategy to Verify Python Program is POST'ing to a web server.

2011-06-18 Thread mzagu...@gmail.com
Hello Folks, I am wondering what your strategies are for ensuring that data transmitted to a website via a python program is indeed from that program, and not from someone submitting POST data using some other means. I find it likely that there is no solution, in which case what is the best solut

Re: Running a Python script on a web server

2011-06-07 Thread Abhijeet Mahagaonkar
host" these scripts on a webserver and have them run on > browsers > > > > rather than on individual systems. > > That's the normal way to run Python on the web. You store your Python > (or Perl or PHP or compiled C) programs on a web server that offers > Python h

Re: Running a Python script on a web server

2011-06-07 Thread D'Arcy J.M. Cain
sted a server space so I need some inputs on how i will be > > > able to "host" these scripts on a webserver and have them run on browsers > > > rather than on individual systems. That's the normal way to run Python on the web. You store your Python (or Perl or PHP

Re: Running a Python script on a web server

2011-06-07 Thread Chris Angelico
On Wed, Jun 8, 2011 at 3:52 PM, Abhijeet Mahagaonkar wrote: >>>Python doesn't normally run in a web browser. There's two easy options: > > Is there an option of running it like php? I have never written in php, but > my understanding is that the php script will be saved in some remote server > and

Re: Running a Python script on a web server

2011-06-07 Thread Abhijeet Mahagaonkar
ipts and > run them. Anything can do this, but all you gain is that they don't > have to keep a collection of scripts / EXEs on their hard drives. > > 2) Run the Python scripts on the web server. I don't know whether this > is even possible in your situation; it would turn

Re: Running a Python script on a web server

2011-06-07 Thread Nitin Pawar
on doesn't normally run in a web browser. There's two easy options: > > 1) Use very simple web hosting that lets people download scripts and > run them. Anything can do this, but all you gain is that they don't > have to keep a collection of scripts / EXEs on their hard dr

Re: Running a Python script on a web server

2011-06-07 Thread Chris Angelico
lly run in a web browser. There's two easy options: 1) Use very simple web hosting that lets people download scripts and run them. Anything can do this, but all you gain is that they don't have to keep a collection of scripts / EXEs on their hard drives. 2) Run the Python scripts on the web

Running a Python script on a web server

2011-06-07 Thread Abhijeet Mahagaonkar
Dear Pythoners, I have written a few python tools and cant distribute as exe due to scalability issues. I started with a few tools and gave it as exe to the users and now as the number of tools have increased, they complain they have too many exes :) So i have requested a server space so I need s

Re: sending a file chunk by chunk instead as a whole to a web server

2010-08-02 Thread Ryan Kelly
On Tue, 2010-08-03 at 10:45 +0530, Kushal Kumaran wrote: > On Mon, Aug 2, 2010 at 12:22 PM, Sanjeeb wrote: > > Hi, > > I have a web client which send a file to a server as multipart form > > data, the sending of data is from > > http://code.activestate.com/recipes/146306-http-client-to-post-using-

Re: sending a file chunk by chunk instead as a whole to a web server

2010-08-02 Thread Kushal Kumaran
On Mon, Aug 2, 2010 at 12:22 PM, Sanjeeb wrote: > Hi, > I have a web client which send a file to a server as multipart form > data, the sending of data is from > http://code.activestate.com/recipes/146306-http-client-to-post-using-multipartform-data/. > > I dont want to open the whole file to memo

Re: sending a file chunk by chunk instead as a whole to a web server

2010-08-02 Thread Sanjeeb
On Aug 2, 11:52 am, Sanjeeb wrote: > Hi, > I have a web client which send a file to a server as multipart form > data, the sending of data is > fromhttp://code.activestate.com/recipes/146306-http-client-to-post-using- > > I dont want to open the whole file to memory(at cliend end) and then >

sending a file chunk by chunk instead as a whole to a web server

2010-08-01 Thread Sanjeeb
Hi, I have a web client which send a file to a server as multipart form data, the sending of data is from http://code.activestate.com/recipes/146306-http-client-to-post-using-multipartform-data/. I dont want to open the whole file to memory(at cliend end) and then send, i just want to send part by

Re: Load/Performance Testing of a Web Server

2010-07-11 Thread kak...@gmail.com
On Jul 9, 4:44 pm, Simon Brunning wrote: > On 9 July 2010 14:17, kak...@gmail.com wrote: > > > Hi to all, i want to stress test   a tomcat web server, so that i > > could find out its limits. e.g how many users can be connected and > > request a resource concurrently. &g

Re: Load/Performance Testing of a Web Server

2010-07-09 Thread Simon Brunning
On 9 July 2010 14:17, kak...@gmail.com wrote: > Hi to all, i want to stress test   a tomcat web server, so that i > could find out its limits. e.g how many users can be connected and > request a resource concurrently. > I used JMeter which is an excellent tool, but i would like to

Load/Performance Testing of a Web Server

2010-07-09 Thread kak...@gmail.com
Hi to all, i want to stress test a tomcat web server, so that i could find out its limits. e.g how many users can be connected and request a resource concurrently. I used JMeter which is an excellent tool, but i would like to use a more pythonic approach. Any hints Antonis -- http

Re: Capture the request/response log for local web server through python.

2010-06-14 Thread Gabriel Genellina
En Tue, 15 Jun 2010 00:41:08 -0300, shanti bhushan escribió: Dear all, I have made local webserver up by the python script from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer class MyHandler(BaseHTTPRequestHandler): def do_GET(self): try: if self.path.ends

Re: python local web server

2010-06-14 Thread James Mills
On Tue, Jun 15, 2010 at 2:44 PM, alex23 wrote: > shanti bhushan wrote: >> 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. In addition to my good colleagues so

Re: python local web server

2010-06-14 Thread Stephen Hansen
On 6/14/10 9:41 PM, shanti bhushan wrote: > 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 fo

Re: python local web server

2010-06-14 Thread alex23
shanti bhushan wrote: > 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. -- http://mail.python.org/mailman/listinfo/python-list

python local web server

2010-06-14 Thread 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

Capture the request/response log for local web server through python.

2010-06-14 Thread shanti bhushan
Dear all, I have made local webserver up by the python script import string,cgi,time from os import curdir, sep from BaseHTTPServer import BaseHTTPRequestHandler, HTTPServer #import pri import glob import logging import logging.handlers class MyHandler(BaseHTTPRequestHandler): def do_GET(self

Re: Submit HTTP GET data from XP PC to PHP on web server.

2010-02-19 Thread Joe Riopel
basic examples of > how to send http get data from an xp mashine using python code to php on web > server. Have a look at urllib2 (urllib2.Request) and maybe mechanize (http://wwwsearch.sourceforge.net/mechanize/). -- http://mail.python.org/mailman/listinfo/python-list

Submit HTTP GET data from XP PC to PHP on web server.

2010-02-19 Thread Schedule
python code to php on web server. I have some parameters to collect from windows mashine via http get and collect them on web server using php. Any hint how to begin would be appreciated. -- http://mail.python.org/mailman/listinfo/python-list

Re: Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-04 Thread Diez B. Roggisch
Lawrence D'Oliveiro schrieb: In message , Steve Holden wrote: Yes, but not to MySQL, please. Particularly since there is a sword of Damocles hanging over its head while the Oracle takeover of Sun is pending. Ah, I see the FUDsters are crawling out of the woodwork here, as well. I’ve got new

Re: Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-03 Thread Steve Holden
Lawrence D'Oliveiro wrote: > In message , Steve > Holden wrote: > >> Yes, but not to MySQL, please. Particularly since there is a sword of >> Damocles hanging over its head while the Oracle takeover of Sun is >> pending. > > Ah, I see the FUDsters are crawling out of the woodwork here, as well.

Re: Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-03 Thread Lawrence D'Oliveiro
In message , Steve Holden wrote: > Yes, but not to MySQL, please. Particularly since there is a sword of > Damocles hanging over its head while the Oracle takeover of Sun is > pending. Ah, I see the FUDsters are crawling out of the woodwork here, as well. I’ve got news for you: MySQL is an open

Re: Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-03 Thread Steve Holden
John Nagle wrote: > pyt...@bdurham.com wrote: >> I'm looking for the best practice way for a multi-threaded python web >> server application to read/write to a shared file or a SQLite database. >> >> What do I need to do (if anything) to make sure my writes to a

Re: Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-02 Thread John Nagle
pyt...@bdurham.com wrote: I'm looking for the best practice way for a multi-threaded python web server application to read/write to a shared file or a SQLite database. What do I need to do (if anything) to make sure my writes to a regular file on disk or to a SQLite database are atom

Re: Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-01 Thread Roger Binns
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Diez B. Roggisch wrote: > AFAIK, sqlite ensures process-serialization via locking, and threads > synchronize themselves as well. SQLite versions prior to 3.5 did not support using the same connection or cursors in different threads. (You needed to al

Re: Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-01 Thread Diez B. Roggisch
pyt...@bdurham.com schrieb: I'm looking for the best practice way for a multi-threaded python web server application to read/write to a shared file or a SQLite database. What do I need to do (if anything) to make sure my writes to a regular file on disk or to a SQLite database are atom

Safe file I/O to shared file (or SQLite) from multi-threaded web server

2010-01-01 Thread python
I'm looking for the best practice way for a multi-threaded python web server application to read/write to a shared file or a SQLite database. What do I need to do (if anything) to make sure my writes to a regular file on disk or to a SQLite database are atomic in nature when multiple clients

Re: Recommendation for small, fast, Python based web server

2009-12-27 Thread python
> This is a new wsgi web server implemented in a single file. > http://code.google.com/p/web2py/source/browse/gluon/sneaky.py Thank you Massimo. Regards, Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: Recommendation for small, fast, Python based web server

2009-12-26 Thread Antoine Pitrou
C -- especially for low-level stuff -- and a >>Python Web server will probably serve around 10x less requests per >>second than a C Web server like Apache (this will still give you >>hundreds of simple requests per second on a modern machine). > > For static pages or dyn

Re: Recommendation for small, fast, Python based web server

2009-12-25 Thread mdipierro
This is a new wsgi web server implemented in a single file. http://code.google.com/p/web2py/source/browse/gluon/sneaky.py I could use some help with testing. Here is a version for Python 3.0 http://code.google.com/p/web2py/source/browse/gluon/sneaky.py Massimo On Dec 25, 12:38 pm, a

Re: Recommendation for small, fast, Python based web server

2009-12-25 Thread Aahz
In article , Antoine Pitrou wrote: > >Apparently you have debugged your speed issue so I suppose you don't have >performance problems anymore. Do note, however, that Python is generally >not as fast as C -- especially for low-level stuff -- and a Python Web >server will p

Re: Recommendation for small, fast, Python based web server

2009-12-11 Thread Antoine Pitrou
Le Fri, 11 Dec 2009 19:40:21 +0100, Irmen de Jong a écrit : > > I don't think that number is fair for Python. I think a well written > Python web server can perform in the same ballpark as most mainstream > web servers written in C. Especially Apache, which really isn't a to

Re: Recommendation for small, fast, Python based web server

2009-12-11 Thread Irmen de Jong
hat Python is generally not as fast as C -- especially for low-level stuff -- and a Python Web server will probably serve around 10x less requests per second than a C Web server like Apache (this will still give you hundreds of simple requests per second on a modern machine). I don't think

Re: Recommendation for small, fast, Python based web server

2009-12-11 Thread Antoine Pitrou
not as fast as C -- especially for low-level stuff -- and a Python Web server will probably serve around 10x less requests per second than a C Web server like Apache (this will still give you hundreds of simple requests per second on a modern machine). In any case, as far as functionality, robustness,

Re: Recommendation for small, fast, Python based web server

2009-12-09 Thread birdsong
On Dec 9, 4:05 pm, pyt...@bdurham.com wrote: > Daniel, > > > I'm using cherrypy for this purpose, actually together with turbogears 1. > > My research has constantly pointed back to cherrypy as a tool of choice > for building local web servers. My initial impression was that cherrypy > was too big

Re: Recommendation for small, fast, Python based web server

2009-12-09 Thread python
Daniel, > I'm using cherrypy for this purpose, actually together with turbogears 1. My research has constantly pointed back to cherrypy as a tool of choice for building local web servers. My initial impression was that cherrypy was too big and complicated for my simple task. However, I'm going to

Re: Recommendation for small, fast, Python based web server

2009-12-09 Thread python
Tim, > I've used WebStack[1] for this in the past. It allows for stand-alone serving > as well as plugging nicely into various "real" servers (apache+mod_python, > etc) with a small tweak in how it's configured. Thanks for that recommendation. > I'm not sure what caused the slowness you've exp

Re: Recommendation for small, fast, Python based web server

2009-12-09 Thread Daniel Fetchinson
> I'm looking for a small, simple, fast, Python based web server > for a simple, client side application we're building. We don't > want to distrubute and support a "real" web server like Apache or > Tomcat or depend on the presence of local web server such

Re: Recommendation for small, fast, Python based web server

2009-12-09 Thread Tim Chase
pyt...@bdurham.com wrote: I'm looking for a small, simple, fast, Python based web server for a simple, client side application we're building. I've used WebStack[1] for this in the past. It allows for stand-alone serving as well as plugging nicely into various "r

Recommendation for small, fast, Python based web server

2009-12-09 Thread python
I'm looking for a small, simple, fast, Python based web server for a simple, client side application we're building. We don't want to distrubute and support a "real" web server like Apache or Tomcat or depend on the presence of local web server such as IIS. The application

Re: Accessing a Web server --- how?

2009-11-18 Thread Nick Stinemates
This is what the History and Compare URL translates to: http://service.nordea.com/nordea-openpages/six.action?target=/nordea.public/bond/nordeabond.page&magic=(cc+(detail+(tsid+310746)+(view+hist)))& Some questions.. Do you have an idea on what the tsid is? It looks like it's a unique identifier

  1   2   3   >