Re: How to ping a site ?

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: OL (omryl_at_simigon.com)
Date: 09/14/04


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



Relevant Pages

  • Re: How to terminate a socket in CLOSE_WAIT state
    ... FTP Server fixed for certain FTP clients who use both passive ... This was causing a PASSIVE opened socket to be left ... but instead expect the "half close" from the receiver. ... this sends a TCP/IP FIN packet to the ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Socket switch delay
    ... both at the client and at the server (and why ... would you set the send buffer size to zero on a non-overlapped ... One glaring error is your client does ... So when you use a single socket, ...
    (microsoft.public.win32.programmer.networks)
  • Re: Applet Hangs when submitting data to servlet
    ... to put a time limit on my socket connections and socket reads. ... public void setTimeoutthrows UnknownHostException, ... on our web server. ... private JButton theSubmitButton_, theClearButton_; ...
    (comp.lang.java.programmer)
  • Re: Problem with writing fast UDP server
    ... UDP packets per second. ... socket and threads. ... I wrote a simple case test: client and server. ... The maximum theoretical limit is 14,880 frames per ...
    (comp.lang.python)
  • Re: Socket Exception
    ... In this case the server most likely rejected your ... connection. ... Each command is a new socket connection that is opened and closed ... /// Required designer variable. ...
    (microsoft.public.win32.programmer.networks)