Is there a command that pings a URL and can return the page header?

This is a discussion on Is there a command that pings a URL and can return the page header? within the C++ Programming forums, part of the General Programming Boards category; Im looking to write a program that will ping a series of sites IE www.stuff.com/####L####L where the #'s are 0-9 ...

  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    3

    Is there a command that pings a URL and can return the page header?

    Im looking to write a program that will ping a series of sites

    IE www.stuff.com/####L####L where the #'s are 0-9 and the L's can be N,S,E,W


    basically it would be a loop that would ping every possible combination of numbers and letters that fit that URL, and then it would return, whether the site existed or not, even better if it would return the heading of the website.


    any help on commands that could do this would be appreciated.


    anyone who helps will get info on what the programs for, which is actually kind of interesting and may be something you would like to work on.

  2. #2
    The larch
    Join Date
    May 2006
    Posts
    3,573
    Quote Originally Posted by Eul0gy View Post
    anyone who helps will get info on what the programs for, which is actually kind of interesting and may be something you would like to work on.
    So, what's the program for?
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  3. #3
    Registered User
    Join Date
    May 2007
    Posts
    3
    Quote Originally Posted by anon View Post
    So, what's the program for?
    its for volvo's 50,000$+Car hunt.


    all the sites it sends you to are

    www.volvocrapstuff.com/####L####L, basically ####L####L being map coordinates.

    the pages aren't secure and dont require login, or the linking from another page, so basically you could play the puzzle, or see which pages exist and which ones return crap.

    if this is against the TOS of the board, let me know and ill remove the thread.

  4. #4
    The larch
    Join Date
    May 2006
    Posts
    3,573
    This sounds a bit unethical...
    By the way, do you realize there are 1,600,000,000 different combinations (if my calculations are not off)?
    So, even if it was legal, you might experience some technical problems...
    I might be wrong.

    Thank you, anon. You sure know how to recognize different types of trees from quite a long way away.
    Quoted more than 1000 times (I hope).

  5. #5
    Registered User
    Join Date
    May 2007
    Posts
    3
    yeah the 1,600,000,000 sounds right, but the contest doesn't end till the end of May so theres plenty of time.


    this is half serious, half to just see if it could be done. i have the next month off, but need to conserve money so i figured id find something to waste my time.

  6. #6
    Registered User
    Join Date
    Nov 2004
    Location
    Pennsylvania
    Posts
    434
    well theres' the system('ping #.#.#.#'); or ping /*url*/

    But i don't think that'll be able to return any information to the program =(
    "Anyone can aspire to greatness if they try hard enough."
    - Me

Popular pages Recent additions subscribe to a feed

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21