Biologist new to cgi in python

Tim Roberts timr at probo.com
Thu Mar 8 01:11:45 EST 2012


Shane Neeley <shane.neeley at gmail.com> wrote:
>
>Here is the function I am using to insert the variable file text inside the
>url. Is it even possible to include the upload command in the url? 

No.  You are trying to simulate a "GET" request, but files can only be
uploaded via a "POST" request of type multiport/form-data.  There is a
module called "poster" that can do the appropriate encoding for you:

http://stackoverflow.com/questions/680305/using-multipartposthandler-to-post-form-data-with-python
-- 
Tim Roberts, timr at probo.com
Providenza & Boekelheide, Inc.



More information about the Python-list mailing list