HTTPS File Uploads 
Author Message
 HTTPS File Uploads

I am trying to do the same as this delphi code in VB6. Does anyone know how
to convert from this code below to the same in VB6???

              IEHTTP1.Timeout := 30;
              IEHTTP1.MultipartPOST := True;
              IEHTTP1.request_headers.Add('Accept: image/gif,
image/x-xbitmap, image/jpeg, image/pjpeg,'+
application/xaml+xml, application/, application/x-ms-xbap,
application/x-ms-application, application/,
application/, application/msword, */*');
              IEHTTP1.request_headers.Add('Referer: ' + fstr_LoTW_Upload_URL);
              IEHTTP1.request_headers.Add('Accept-Language: en-us');
              IEHTTP1.request_headers.Add('UA-CPU: x86');
              IEHTTP1.request_headers.Add('User-Agent: Mozilla/4.0
(compatible; MSIE 7.0; Windows NT 5.1; Mozilla/4.0 (compatible; MSIE 6.0;
Windows NT 5.1; SV1) ; .NET CLR 1.0.3705; .NET CLR 1.1.4322; Media Center PC
4.0; .NET CLR 2.0.50727;' +
                                          '.NET CLR 3.0.04506.30; .NET CLR
3.0.04506.648; .NET CLR 3.5.21022; WD5EAE LoTW Generator)');


              bolUploadSuccess := False;
              intStartPos := 0; // remove false compiler warning about
un-init var
              for intUplAttempts := 1 to conMaxUploadAttempts do begin
                IEHTTP1.AddMultipartFormFile('upfile', strTQ8FileName);
                //IEHTTP1.URL := '';
                IEHTTP1.URL := fstr_LoTW_Upload_URL;

TIA Rick

Mon, 14 May 2012 21:58:03 GMT  
 HTTPS File Uploads

>I am trying to do the same as this delphi code in VB6. Does anyone know how
> to convert from this code below to the same in VB6???

Maybe you could modify this sample which already supports HTTPS. In the
sample form, look for "Secure" check box. Also, when specifying a URL, don't
include the "http://" part. The sample doesn't upload files, but I think you
find demo VB code that does that part.

SAMPLE: Vbhttp.exe Demonstrates How to Use HTTP WinInet APIs in Visual Basic

Tue, 15 May 2012 02:08:15 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Uploading a file using https put

2. Uploading File To HTTPS URI Using WebClient

3. Uploading File To HTTPS Address Using WebDAV

4. Upload a file to a https

5. Uploading files via HTTPS

6. Datei Upload per HTTP / File upload via HTTP

7. Open file dialog box and upload file

8. File upload from VB 6 to ASP file using http form post

9. https post binary file

10. Automating File Download from HTTPS Server

11. Retrieving File from HTTPS Server

12. Download files from secure Internet site (HTTPS, SSL) using WinInet API


Powered by phpBB® Forum Software