Excercise: File upload to URL (ex17)

• Program an application that creates a text file and uploads it to a URL.

1. import httplib, urllib

2. create an application menu with 1 item "send file".

3. create a function called senddata that does the uploading.

 

 

Example file: ex_file_upload.py

Description: ex_file_upload_descr.py (not yet available)

 

Example php file : set_text.php

 

Resulting test url: http://www.leninsgodson.com/courses/pys60/php/textfile.txt

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Previous | Next | Menu     Copyright (c) 2006 Jurgen Scheible