|
-
Oct 24th, 2006, 02:39 PM
#1
Thread Starter
Junior Member
[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?
-
Oct 24th, 2006, 02:41 PM
#2
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"
-
Oct 24th, 2006, 02:45 PM
#3
Thread Starter
Junior Member
Re: Download a webpage from the internet using khttp component?
 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 ...
Last edited by sufyaaan; Oct 24th, 2006 at 03:04 PM.
-
Oct 24th, 2006, 02:49 PM
#4
Thread Starter
Junior Member
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?
-
Oct 24th, 2006, 02:57 PM
#5
Thread Starter
Junior Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|