Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 20th, 2008, 05:46 PM
Registered User
 
Join Date: Nov 2008
Location: woodstock, ga, USA.
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default binary file upload via msinet execute post

Hello,
Until someone suggested that I use msinet in vb6, I spent weeks studying the http protocol to figure out how to upload a binary file to a secure web site. I learned that the 'body' of a post request to upload a file was supposed to contain:
*
boundary=ZXBXabFIR9X6v1ZgmVhB27Pie975YU0s
Content-Length: nnnn (length of remaining data)
CrLf
--ZXBXabFIR9X6v1ZgmVhB27Pie975YU0s
Content-Disposition: form-data; name="upfile"; uploadname="fname"
Content-Type: application/octet-stream
CrLf
(data here)
--ZXBXabFIR9X6v1ZgmVhB27Pie975YU0s--
*
My question is:
Do I just give the binary file string to inet1 as the data for a Post request? Or do I surround the data with all/some of the above?

Thanks



ftbrady
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Read Text file and convert to Binary file VB.net sjlsysprg1 Pro VB.NET 2002/2003 4 June 29th, 2007 06:53 AM
Conversion of Binary file to Text file suneet.pant Pro VB.NET 2002/2003 1 April 20th, 2007 07:29 AM
How to convert Binary file to Text File pbassett Beginning VB 6 1 May 9th, 2006 03:51 AM
Whole Folder upload(Multi file Upload) ramasamy_rams XML 1 September 9th, 2005 12:43 PM
SQL 2000 database / text file / binary file pallone Javascript How-To 3 January 28th, 2005 01:26 PM



All times are GMT -4. The time now is 05:07 PM.


Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.