Advertisement
ASP_Volume2 Internet/ HTML #32669

A must have! Send HTML headers.

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.

AI

AI 요약: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

소스 코드
original-source
'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
원본 댓글 (3)
Wayback Machine에서 복구됨