Frastrating-doesn't give all the data

S

Southern at Heart

in the example code below, why doesn't it return the whole source of the
webpage


Function Get_Webpage(my_url As String) As Variant
Set my_obj = CreateObject("MSXML2.XMLHTTP")
my_obj.Open "GET", my_url, False
my_obj.Send
Get_Webpage = my_obj.responsetext
Set my_obj = Nothing
End Function

Sub test()
Dim strURL As String
Dim strSource As Variant

strURL = "http://www.gocomics.com/calvinandhobbes/2010/01/15"

strSource = Get_Webpage(strURL)
....


It's like it's truncated or something?
 
J

joel

I found some notes at the MSDN website that said :

Change GET ot POST


POST works properly with multiple requessts to the same object. GE
does not. So try POST when you experience problems
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top