Jump to content

Testing HTTP connections


 Share

Recommended Posts

Hi Everyone!

I'm looking to make a simple tool that can test if a HTTP connection is successful or not. My reason for this is that the website is behind a firewall, so does not respond to pings. Also tracert's die when they hit the firewall.

Also I'd like this to be tested with IE/Windows settings (As opposed to FireFox's or any other browser), to see if there's any issues with IE. Essentially I'm thinking something like this:

- Test the connection

- If successful, return 1

- If fail, return 0

This will test a few different subdomains of the site, then eventually return a success or fail.

Can you guys suggest what the best way to do this with Autoit would be? Getting started on this is the hard part for me :-)

Thanks for your time!

Link to comment
Share on other sites

HTTP travels over TCP. If you only want to check the success of the connection, then just connect with TCPConnect. InetGet uses the proxy settings, so you might as well try that.

- Test the connection

- If successful, return 1

- If fail, return 0

This is brilliant btw. Don't implement it any way else.

Edited by Manadar
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...