// Sample program to show how to write a simple version of curl using // the io.Reader and io.Writer interface support. package main import ( "fmt" "io" "net/http" "os" ) // init is called before main. func init() {
昨天在百度知道上提了这个问题,我保存了些百度知道我回答的网址,想利用excel直接读取出网址的title,请问vba代码怎么写?(要支持https的) excel大神帮我回答了,在这记录下: Function getTitle(sUrl As String) Dim oXHTTP As Object, Str As String Set oXHTTP = CreateObject("MSXML2.XMLHTTP") oXHTTP.Open "GET", sUrl,
使用Indy 10中TIdHTTP的例子: 代码 uses IdHttp; . . . function HttpGet(const Url: string; var Html: string): Boolean; var HttpClient: TIdHTTP; begin Result := False; HttpClient := TIdHTTP.Create(nil); try Html := HttpClient.Get(Url); Result := True; except on