oren Posted September 19, 2008 Share Posted September 19, 2008 I'm building a script to interface with website. And i know about 4 ways to interface with website There is Curl but its a external program... There is Wininet.dll There is winhttprequest Object (And there is Inetget but its not subtable for my needes) What is in you opinion the fastest why? And how can i benchmark them? Thanks In Advance. Link to comment Share on other sites More sharing options...
PsaltyDS Posted September 19, 2008 Share Posted September 19, 2008 I'm building a script to interface with website.And i know about 4 ways to interface with websiteThere is Curl but its a external program...There is Wininet.dll There is winhttprequest Object(And there is Inetget but its not subtable for my needes)What is in you opinion the fastest why?And how can i benchmark them?Thanks In Advance.Your only criteria is "fastest"? Not a very complicated set of benchmarks. Just use TimerInit()/TimerDiff() to see how long they take. Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
trancexx Posted September 19, 2008 Share Posted September 19, 2008 (edited) ... but make sure to avoid caching when testing because you basically said:There are four ways -Curl-Wininet.dll -Wininet.dll -Wininet.dll There are some more ways (or just a way) posted arround Edited September 19, 2008 by trancexx ♡♡♡ . eMyvnE Link to comment Share on other sites More sharing options...
oren Posted September 20, 2008 Author Share Posted September 20, 2008 Your only criteria is "fastest"? Not a very complicated set of benchmarks. Just use TimerInit()/TimerDiff() to see how long they take. Well i had some more criteria .. but this are all the ways that support all my criteria. I'm now building each way and testing there speed with TimerInit/Timerdeif. Its seems that must of the time spet in curl is from this code... Dim $sOut = "" While 1 $sOut &= StdoutRead($iLogCurl) If @error Then ExitLoop WEnd While 1 $sOut &= StderrRead($iLogCurl) If @error Then ExitLoop WEnd ... but make sure to avoid caching when testing because you basically said: There are four ways -Curl -Wininet.dll -Wininet.dll -Wininet.dll There are some more ways (or just a way) posted arround Well you mean that Inetget and winhttp object both using the wininet.dll? What more ways of cxonecting do you know? I would love the help... Thanks 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