[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Behind The Button -- Socket File Transfer (fwd)



Sender: Scott Klement <sk@xxxxxxxxxxxxxxxx>


The following message was posted to MIDRANGE-L by Dave Parnin who is
trying to figure out how to use HTTPAPI to do a POST with a payload that's
equivalent to an <form enctype="multipart/form-data"> and <input
type=file">

---------- Forwarded message ----------
Date: Mon, 26 Jul 2004 10:40:43 -0500
From: daparnin@xxxxxxxxxxxxxxxxxx
Reply-To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
To: midrange-l@xxxxxxxxxxxx
Subject: Re: Behind The Button -- Socket File Transfer





Scott,

Thanks for the response.  I'm not sure of all of the underlying code and
maybe I don't need to.  Basically, I just need to fill in the path/filename
of the file that I want to upload and then "click" on the button to
initiate the transfer.  I don't see much in the HTTP code.  It's probably
an underlying CGI that does the work.  I'm also looking in EXAMPLE4 of your
HTTPAPI for UPS package tracking.  I think that this is along the lines of
what I want to do.  Do you have a PDF file that explains this such as you
sockets or IFS tutorials?

The following is what I see at the site I'm going to.  The section of the
screen has an "upload file" button, a box to type in the path/filename, a
browse button, a "set ASCII" button, and a "change password" button.  I
just need to fill in the box of where the my file is in the IFS and 'click'
on the "upload file" button.  The snippet of HTML code is below.

Any thoughts?

Dave Parnin
Nishikawa Standard Company
Topeka, IN  46571
daparnin@xxxxxxxxxxxxxxxxxx


<TABLE BORDER=0><TR>
<FORM ENCTYPE="multipart/form-data" ACTION="/" METHOD=POST>
<TD ALIGN=LEFT>
<INPUT TYPE=SUBMIT VALUE="Upload File">
</TD><TD ALIGN=LEFT>
<INPUT TYPE=FILE NAME="File" SIZE=20>
</TD>
</FORM>
<FORM METHOD="POST" ACTION="/" ENCTYPE="application/x-www-form-urlencoded">
<TD ALIGN=LEFT>
<INPUT TYPE="submit" VALUE="Set Ascii" NAME="switch"></TD><TD ALIGN=LEFT>
<INPUT TYPE="submit" VALUE="Chg Passwd",
NAME="switch">
</TD>
</FORM>
</TR></TABLE>
-----------------------------------------------------------------------
This is the FTPAPI mailing list.  To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------