VB icon

A must have! Send HTML headers.

Email
Submitted on: 1/3/2015 10:59:00 AM
By: c0rrupt0 (from psc cd)  
Level: Not Given
User Rating: By 5 Users
Compatibility: VB 3.0, VB 4.0 (16-bit), VB 4.0 (32-bit), VB 5.0, VB 6.0, ASP (Active Server Pages)
Views: 911
 
     This is the data that you must send to a server when requesting an HTML page. If you are useing a control such as the Microsoft Internet control then you do not need this. If you are builduing a source grabber or something liek that, then you will need this.
 
code:
Can't Copy and Paste this?
Click here for a copy-and-paste friendly version of this code!
				
'**************************************
' Name: A must have!Send HTML headers.
' Description:This is the data that you must send to a server when requesting an HTML page. If you are useing a control such as the Microsoft Internet control then you do not need this. If you are builduing a source grabber or something liek that, then you will need this.
' By: c0rrupt0 (from psc cd)
'
' Inputs:at least some form of internet connection. I used mswinsck.ocx for my control and I have this code located in the winsock_connect event.
'
' Side Effects:non so far
'**************************************

'As you can see I have a winsock control named sckURL.
'You can change that to anythign you wish.
With sckURL
.SendData "GET /" & tPage & " HTTP/1.1" & vbCrLf
.SendData "Accept: text/plain" & vbCrLf
.SendData "Accept-Language: en-us" & vbCrLf
.SendData "Accept-Encoding: gzip, deflate" & vbCrLf
.SendData "User-Agent: Mozilla/4.0 (compatible; MSIE 5.0; Windows 98; DigExt)" & vbCrLf
.SendData "Host: " & varDom & vbCrLf
.SendData "Connection: Keep-Alive" & vbCrLf & vbCrLf
End With


Other 1 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Not Given category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments


 There are no comments on this submission.
 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.