Re: How to ping a site ?
From: OL (omryl_at_simigon.com)
Date: 09/14/04
- Next message: Carl Daniel [VC++ MVP]: "Re: C++ standard documentation"
- Previous message: CheckAbdoul: "Re: How to make the Windows to run a console program during OS startup?"
- In reply to: Vincent Fatica: "Re: How to ping a site ?"
- Next in thread: ama: "Re: How to ping a site ?"
- Messages sorted by: [ date ] [ thread ]
Date: 14 Sep 2004 07:14:01 -0700
Vincent Fatica <abuse@localhost.com> wrote in message news:<414635a7$1@localhost>...
> Once you have an IP address, you can also use a simple connect() on port
> 80 (or any TCP port you expect to be listening) then immediately close
> the socket. It may be a little rude, but I have used this technique
> while timing the response to see how the various protocols (HTTP, SMTP,
> POP, NNTP, et c.) are affected by a packet-shaper.
>
> On Mon, 13 Sep 2004 13:55:25 -0400, "Igor Tandetnik"
> <itandetnik@mvps.org> wrote:
>
> >"ama" <a.m.a@videotron.ca> wrote in message
> >news:blj1d.46385$WH1.629116@wagner.videotron.net
> >> I need to know how i can similate a click with a URL that constains
> >> data for the server , ex:
> >> http://www.sd.com?_soaid+234234...
> >>
> >> It is used by banners for exemple, exept i dont need to download
> >> anything. I just want to ping with this URL .
> >
> >I'm not sure what you mean by "ping". If you mean "execute ping ICMP
> >protocol", it takes an IP address or a domain name, not a URL, which
> >renders your question meaningless. If you mean "execute an HTTP request
> >but ignore the response", I don't see what a problem is - just do this
> >as you normally would, and drop on the floor any data sent by the
> >server. To reduce network load, you can issue a HEAD request instead of
> >GET, then the server will only respond with headers but won't send any
> >content.
Hi there ama,
You can use the icmp.dll which is undocumented , search for it on
google , you should do:
1) LoadLibrary() and GetProcAddess() to use the exported functions:
IcmpSendEcho()
this is what ping is using...
2) search the web for IcmpSendEcho() and you will find an example.
Hope it helped,
Omry Levy
- Next message: Carl Daniel [VC++ MVP]: "Re: C++ standard documentation"
- Previous message: CheckAbdoul: "Re: How to make the Windows to run a console program during OS startup?"
- In reply to: Vincent Fatica: "Re: How to ping a site ?"
- Next in thread: ama: "Re: How to ping a site ?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|