Home > Software engineering >  VB how to use the Inet control Post way to upload files?
VB how to use the Inet control Post way to upload files?

Time:09-23

Consult ace, how to use the INet control POST way was used to simulate the function of the web page submit images? That is how to send binary stream

CodePudding user response:

Using the Execute method on the HTTP protocol
The HTTP protocol allows a client to use the GET, HEAD, POST and PUT command to the server requesting data, in the table below lists these operations:

Operation description example
GET access to the url naming files, Execute "http://www.microsoft.com" & amp; _
"/default. HTM", "GET"


HEAD only access to the URL attribute naming the file header, Execute, "HEAD"

POST to provide additional data to support the request to the remote host, Execute, "POST", strFormData

The PUT () method replaces data in a specified URL, Execute, "PUT", "replace. HTM"



Common gateway interface and the Execute method
Many of the World Wide Web site provides the ability to search the database, it is through the HTTP protocol with the common gateway interface (CGI) sends the query ability,

Here no longer discuss the CGI, however, if the CGI is more understanding, can be used the Execute method constructs an application simulation World Wide Web sites, for example, the code below shows the typical CGI query string:

http://www.yippee.com/cgi-bin/find.e xe? The find=Hangzhou

As shown below, use the Execute method also can send the same query:

Dim strURL As String, strFormData As String
StrURL="//www.yippee.com/cgi-bin/find.e xe"
StrFormData="https://bbs.csdn.net/topics/find=Hangzhou"
Rc.inet1. E xecute strURL, "POST", strFormData

If you want to get the results back from the server (as shown in the example below), you must use GetChunk method to obtain as a result of the HTML document,

CodePudding user response:

http://wenku.baidu.com/link? Url=7 qhxw95frwbtfpazmgiepglry2uq MumVz1mCFkAcBH7xqotfLTkjSR - jkzk205y_ J8a7Mk3hvfVJMnSfsiszBGX1QsijI8DlylC35I3-79

CodePudding user response:

This control good or DLL is good?
  • Related