473,386 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

CGI Script using Python

Hello,
is there anybody who can help me.
I would like to use a Python Script to download Files from a Server to the
Client, to update the Client.

Thanx
Ralf
Apr 19 '07 #1
3 1439
On Apr 19, 11:34 am, "Ralf" <r...@supanet.comwrote:
Hello,
is there anybody who can help me.
I would like to use a Python Script to download Files from a Server to the
Client, to update the Client.
Downman is an example of a Python CGI which presents files for
download.

http://www.voidspace.org.uk/python/cgi.shtml#downman

You will want to copy the part that sends the right headers (etc)...

Fuzzyman

Thanx
Ralf

Apr 19 '07 #2
"Ralf" <ra***@supanet.comwrote:
>
is there anybody who can help me.
I would like to use a Python Script to download Files from a Server to the
Client, to update the Client.
Remember, though, that a CGI script cannot actually put files anywhere. You
can certainly download files to the client browser, but the user will have
to be involved to tell the browser where to store the incoming file.

Doing anything else would be a security hole.
--
Tim Roberts, ti**@probo.com
Providenza & Boekelheide, Inc.
Apr 21 '07 #3
On Apr 21, 10:02 pm, Tim Roberts <t...@probo.comwrote:
"Ralf" <r...@supanet.comwrote:
is there anybody who can help me.
I would like to use a Python Script to download Files from a Server to the
Client, to update the Client.

Remember, though, that a CGI script cannot actually put files anywhere. You
can certainly download files to the client browser, but the user will have
to be involved to tell the browser where to store the incoming file.

Doing anything else would be a security hole.
But a CGI script can send a file in response to an automated request
from a client application, without ever needing a browser to be
involved.

Sending the right headers means that existing libraries (urllib2 I
guess) will know how to handle the response.

Fuzzyman
http://www.voidspace.org.uk/python/articles.shtml
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.

Apr 21 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: DeepBleu | last post by:
When one is using an HTML form via a web broswer, the user submits the form contents and these are passed to a CGI Python script on the web server. I need to write a client script that connects to...
5
by: Shalen chhabra | last post by:
Hey, Can anyone give me a snippet for running a python program over all the files in the directory. For ex: I have ten files in a directory and I want to run a python program against all of...
6
by: Paul Winkler | last post by:
This is driving me up the wall... any help would be MUCH appreciated. I have a module that I've whittled down into a 65-line script in an attempt to isolate the cause of the problem. (Real...
7
by: Pankaj | last post by:
The module which i am creating is like Part A: 1. It does some processing by using python code. 2. The result of this python code execution is written to a text file. ] Part B: 1. I read a...
6
by: tatamata | last post by:
Hello. How can I run some Python script within C# program? Thanks, Zlatko
7
by: hlubenow | last post by:
Hi, recently there was a thread about hiding the python-script from the user. The OP could use http://freshmeat.net/projects/pyobfuscate/ H.
4
by: dbee | last post by:
Right. I've got a really, really annoying/difficult/time consuming problem with my development environment. I'm using django to build a web app with paypal integration. My server is hosted...
1
by: michael.buonomo | last post by:
We have been using the Google recommended python script for about a year. We recently realized that the script was not crawling our sites url's, but just our folders which reside on the server. The...
4
by: Quill_Patricia | last post by:
I have a Python script which is used to load data into a database. Up to now this script has been run by customers from the Windows command prompt using "python edg_loader.pyc". Any error messages...
4
by: devi thapa | last post by:
Hi, I am executing a python script in a shell script. The python script actually returns a value. So, can I get the return value in a shell script? If yes, then help me out. Regards, Devi
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.