How could i Post binary data to perl cgi?
Alejandro Tejada
capellan2000 at yahoo.com
Wed Feb 18 10:59:43 EST 2004
Hi developers,
I've read the useful php/cgi messages
in this list, so i'm posting this
question here.
After reading the examples in
the libUrl documentation,
i have success posting a
form to a cgi script.
I put one of the free cgi
scripts in the cgi-bin folder
of my site, and following the
example in the libUrl docs, i adapted
the web form to post the data
to the cgi in the server.
I do not have the code here, so
when i return to that machine
i will post the example of
the small mc script, the html webpage
and the perl cgi.
Now, i'm experimenting to upload
(using post) binary data to a cgi
in a website.
I do not find an specific
example to make this.
Did I had to encode the
binary data with urlencode or
base64encode, before posting the
data to the cgi in the website?
How could i interpret this html form
to use with liburl in RunRev?
<form
action="http://www.yourserver.com/cgi-bin/upload.cgi"
method="post"
enctype="multipart/form-data">
<input type="File" name="FILE1">
<p>
<input type="Submit" value="submit">
</form>
I understand that ftp is available,
to upload files, but using perl cgi
has many advantages, like email
notification, etc.
In fact, Chipp Walters create code
to post files to a specific type of
server, but i test it with the server
i'm using and did not works.
Thanks in advance.
al
=====
Visit my site:
http://www.geocities.com/capellan2000/
Search the mail list:
http://mindlube.com/cgi-bin/search-use-rev.cgi
__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools
More information about the metacard
mailing list