Visual Basic 6.0
HTTP Examples for Visual Basic 6.0
Getting Started
- HTTP Tutorial -- Common HTTP Requests Explained
- HTTP GET - Download HTML or any Text Content to a String
- HTTPS GET using SSL/TLS
- HTTP Download any Type of File (binary or text)
- Demonstrates the Http.QuickRequestParams Method
- Initialize an HTTP Request from a URL
- Parse a URL into its Component Parts
- Debugging HTTP
- HTTP HEAD Request
JSON Requests
- POST application/json HTTPS Request
- HTTP POST JSON
- HTTP POST JSON (application/json)
- Creating an application/json HTTP POST Request
- HTTP POST JSON and Parse JSON Response
- HttpPostJson2 Example
- HTTP PUT JSON
Form, XML and Other Request Bodies
- POST application/x-www-form-urlencoded Two Ways
- HTTP POST with some Params in URL and others in application/x-www-form-urlencoded Body
- HTTPS PUT application/x-www-form-urlencoded
- Duplicating a Simple HTML Form Submission (POST)
- Send HTTPS POST with XML Body
- HTTP POST with Binary Data in Request Body
- HTTP DELETE with Body
- Send XMLHttpRequest and Get Response
- Send XMLHttpRequest using PUT, GET, DELETE, or any HTTP Request Method
URL Encoding and Character Sets
- HTTPS GET URL with URL Encoded Query Params
- HTTP GET with utf-8 URL Encoded Query Params
- HTTP GET with Non-USASCII Query Params
- URL Encoding Charset in POST Query Params
- Send HTTP POST using non-UTF8 such as Windows-1250
Headers and Cookies
- Add Custom Header to HTTP GET
- Adding Cookies to an HTTP Request
- Caching cookies in-memory.
- Persist Cookies to XML Files and Auto Re-Send
- Demonstrates how to Get Cookies Sent by the HTTP Server
Downloads
- HTTP Download with Progress Event Callbacks
- HTTP Download in Parallel with Simultaneous Range Requests
- Get the Last-Modified Date Before HTTP Download
- Get Size of File on Web Server
- How to Avoid Large Strings in HTTP Responses
- HTTP Download from URL with IP Address and Port
Multipart Uploads and Responses
- HTTP multipart/form-data Upload
- Building a multipart/form-data Request for HTTP Upload
- HTTPS multipart/form-data POST
- HTTPS Upload File to Web Server
- Add Data to multipart/form-data Request
- HTTP multipart-mixed POST (for a UPS Package Level Detail PLD Request)
- Parse Multipart Binary Http Response
- How to Access Parts of a multipart/related HTTP Response
Authentication: Basic, Digest, Windows and OAuth
- HTTP Form Authentication
- HTTP Digest-MD5 Authentication Testing with httpbin.org
- HTTPS Windows Integrated Authentication
- HTTPS GET Request with Authorization Bearer Header
- HTTP GET with Custom Header and OAuth2 Bearer Token
- Get XOAUTH2 Access Token from Google OAuth 2.0 Authorization Server
- Auth0 Server-to-Server Access Token (Client Credentials flow)
- Implementing DPoP with OAuth2 Client Credentials
- Twitter OAuth -- Tweet to Your Own Account
TLS, Certificates and Client Authentication
- Get the Server Certificate, Certificate Chain, and Root CA Certificate
- HTTP - Verify Server is a Trusted Root CA
- HTTP Public Key Pinning
- Get Web Server's SPKI Fingerprint
- Require SSL Server Certificate Domain Match
- OCSP Check Domain's Server Certificate Revocation Status
- HTTP TLS Mutual Authentication (Client-Side Certificate)
- Use Installed Cert on Windows for TLS Client Authentication
- Use HTTPS Client Certificate from .cer and .key Files
- HTTPS Mutual Authentication using Smartcard or Token
- HTTPS Client Certificate using Smartcard or Token
Proxies
- Using an HTTP Proxy for HTTP POST's, GET's, etc.
- HTTPS Requests over Squid Proxy Direct TLS Connection
- HTTP/HTTPS using SOCKS5 Proxy
- HTTP/HTTPS using SOCKS4 Proxy
SOAP and Web Services
- Simple SOAP Request
- HTTP SOAP 1.1 Request and Response using POST
- HTTP SOAP 1.2 Request and Response using POST
- Send SOAP 1.2 Request to Web Service Requiring Authentication
- Duplicate TLS 1.2 SOAP Request that uses .NET HttpWebRequest
- SOAP with MTOM XOP Attachment
- SOAP with MTOM XOP 8bit (binary) Attachment
- Another SOAP with MTOM XOP Attachment Example
- WebDAV PROPFIND
- HTTP XMLRPC
Async Requests and Redirects
- Getting the HTTP Response after an Asynchronous HTTP Request Completes
- Cancel HTTP Get Async Task if not Completed after a Max Time
- Manually Follow HTTP Redirects
RFC3161 Timestamps
- RFC3161 Timestamp Client - Fetch from Timestamp Authority (TSA) and Verify
- Extract TSTInfo from RFC3161 Timestamp Reply
Real-World Examples
- Fetch ISBN XML from isbndb.com and Parse
- Peoplevox WMS Authentication
- Peoplevox WMS Export Data
- Find My External Public IP Address