From: Southern at Heart on 16 Jan 2010 01:03 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?
From: joel on 16 Jan 2010 08:19 I found some notes at the MSDN website that said : Change GET ot POST POST works properly with multiple requessts to the same object. GET does not. So try POST when you experience problems. -- joel ------------------------------------------------------------------------ joel's Profile: 229 View this thread: http://www.thecodecage.com/forumz/showthread.php?t=170663 [url="http://www.thecodecage.com"]Microsoft Office Help[/url]
|
Pages: 1 Prev: Visual Basic Editor opens automatically after lock, unlock Next: Disabling all pushbuttons |