AzKay Posted November 12, 2008 Share Posted November 12, 2008 (edited) $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET", "http://www.google.com.au/intl/en_au/images/logo.gif", False) $oHTTP.Send() ConsoleWrite(StringToBinary($oHTTP.ResponseText) & @CRLF) 47494638396114016E00E70000FFFFFFF7FBFFE7EBFFC6D7FFBDCFEFADC7F7A5~ Seems that autoit cuts it off when it sees the first 00, Any ideas on getting around this? Edited November 12, 2008 by AzKay # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
dbzfanatic Posted November 12, 2008 Share Posted November 12, 2008 See if you can get it to be a string. That would probably work. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
LarryDalooza Posted November 12, 2008 Share Posted November 12, 2008 This can't be right... StringToBinary did you try just... ConsoleWrite($oHTTP.ResponseText & @CRLF) AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
AzKay Posted November 12, 2008 Author Share Posted November 12, 2008 Yeah, That returns just; GIF89an. So I used StringToBinary to see where it was stopping at. # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
LarryDalooza Posted November 12, 2008 Share Posted November 12, 2008 Also, I think you need to use ResponseBody Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
AzKay Posted November 12, 2008 Author Share Posted November 12, 2008 .ResponseBody has never worked for me in autoit. Works fine in vbs though; $oHTTP = ObjCreate("winhttp.winhttprequest.5.1") $oHTTP.Open("GET", "http://www.google.com.au/intl/en_au/images/logo.gif", False) $oHTTP.Send() MsgBox(0, "", $oHTTP.ResponseBody) ;Returns blank? Set oHTTP = CreateObject("winhttp.winhttprequest.5.1") oHTTP.Open "GET", "http://www.google.com.au/intl/en_au/images/logo.gif", False oHTTP.Send MsgBox oHTTP.ResponseBody # MY LOVE FOR YOU... IS LIKE A TRUCK- # Link to comment Share on other sites More sharing options...
LarryDalooza Posted November 12, 2008 Share Posted November 12, 2008 ResponseBody uses Byref ... so ... problem. Lar. AutoIt has helped make me wealthy Link to comment Share on other sites More sharing options...
Tristen Posted January 4, 2010 Share Posted January 4, 2010 I have run into a similar problem, but I have actually had ResponseBody work on certain machines (XP for sure, and some 2000 machines I think). Could this possibly be a problem with an out-of-date DLL or COM object? I am using WinHttpRequest object in order to initially post login credentials and then keep the session alive...any suggestions for another library to use? I'll probably try to implement the INET functionality by ParoXsitiC in the mean time. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now