[RESOLVED] Download a webpage from the internet using khttp component?
How to use khttp component to fetch html document for a https site? Has anyone used it to do that? :rolleyes:
Re: Download a webpage from the internet using khttp component?
What is khttp?? You can use Inet (Internet Transfer Control) instead:
VB Code:
Dim source As String
source = Inet1.OpenURL "http://www.VBForums.com"
Re: Download a webpage from the internet using khttp component?
Quote:
Originally Posted by gavio
What is khttp?? You can use Inet (Internet Transfer Control) instead:
VB Code:
Dim source As String
source = Inet1.OpenURL "http://www.VBForums.com"
I think khttp has more features than Inet control. Further, inet control is blocked by many known sites so we cant use it on them. The best thing is it can access https sites ...
Re: Download a webpage from the internet using khttp component?
I am attempting the following code and getting a run-time error '429'
Activex component can't create object.
No matter I have regged it on my PC and included a ref to it from the VB.
VB Code:
Private Sub Command1_Click()
Dim inet As KHTTPLib.inet
Set inet = CreateObject("KHTTPLib.inet")
inet.openurl ("http://www.yahoo.com/")
Text1.Text = inet.content
Set inet = Nothing
End Sub
Anyone help me out?
Re: Download a webpage from the internet using khttp component?
I changed the code and its working like anything....
VB Code:
Private Sub Command1_Click()
Dim inet As New KHTTPLib.inet
inet.openurl ("https://www.sss.com/")
Text1.Text = inet.content
Set inet = Nothing
End Sub
Problem resolved.