Sending HTTP Requests to Access Web Resources Using Excel

Sending HTTP Requests to Access Web Resources Using Excel

Today, I will share code that sends <span>HTTP</span> requests through <span>Excel</span> to retrieve web resources. Function BytesToBString(Body, Cset) On Error Resume Next '"GB2312" '"GBK" '"UTF-8" ' Excel byte encoding conversion Dim Objstream Set Objstream = CreateObject("adodb.stream") Objstream.Type = 1 Objstream.Mode = 3 Objstream.Open Objstream.Write Body Objstream.Position = 0 Objstream.Type = 2 Objstream.Charset = Cset BytesToBString … Read more