|
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> Scott Klement <midrange-l@scottkle To: Midrange Systems Technical Discussion ment.com> <midrange-l@xxxxxxxxxxxx>@SMTP@CTB Sent by: cc: (bcc: David A Parnin/Topeka/NISCO/SPCO) midrange-l-bounces@m Subject: Re: Behind The Button -- Socket File Transfer idrange.com 07/24/2004 03:59 AM Please respond to Midrange Systems Technical Discussion <midrange-l@midrange .com> > I'm new to Sockets. I've been reading Scott's tutorial and the Sorcerer's > Guide so I know enough to be dangerous. I've got a file that I want to > transmit from our iSeries to a Web-hosted system. A browser displays the > web page as a box where you can enter the name of the file on your PC to > upload and then a button to upload it. How do I emulate the file transfer > that the button does with sockets? Can you post the HTML code for this button? I'm not exactly sure what you're referring to. At any rate, you'd probably be better off with HTTPAPI rather than writing your own sockets programs. http://www.scottklement.com/httpapi/ > Currently the data to be transmitted is in a DB2 file. It would be nice to > be able to open a connection that creates a file on their system and then > just reads and writes one record at a time. If it facilitates the transfer > I could write it out to the IFS for something like a FTP "put". I'm open > to suggestion. If that's what you're after, why are you trying to do this with HTTP? -- This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/midrange-l or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.