GreYFoX Posted January 17, 2008 Posted January 17, 2008 (edited) i need a function/scriptthat wouldn't use external softwares but the original script....i need it to check if www.myweb.com/file.ext exist or noand return 1 for existreturn 403 or what ever error code for elseanything similarNote, i don't need to open the pagejust need to check if it exists or notand i don't want any other processes executed.thanksanswered it my self thanks#include <HTTP.au3> #include <IE.au3> $host = "www.myweb.com" $page = "/file.ext" $socket = _HTTPConnect($host) $get = _HTTPGet($host, $page, $socket) $recv = _HTTPRead($socket,1) If @error Then MsgBox(0,"Fatal Error!","Please make sure you are properly conected to the Internet") Else If $recv[0]=200 Then MsgBox(0,"File found","Congratz",10) $O_IEnew = _IECreate("www.myweb.com/file.ext") Exit......................u all know the rest not complete codethanks to http://www.autoitscript.com/forum/index.php?showtopic=29631 Edited January 17, 2008 by GreYFoX
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