Getting the web server current time.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • muscha

    #1

    Getting the web server current time.

    Hi all,

    Is there a way for me to get a webserver current date and time? Probably
    using the webrequest object.

    For example:

    WebRequest request = WebRequest.Crea te(address);
    WebResponse response = request.GetResp onse();

    response ???

    Thanks heaps,

    /m


  • muscha

    #2
    Re: Getting the web server current time.

    > You could create a web service that return it or you could activate the[color=blue]
    > Time server in windows, for this you must install the Networking
    > Services/Simple TCP/IP Services package in the windows installation[/color]
    options.

    Hmm what happen if I don't control the webserver? This is for a general
    webserver which may be using Apache/others.

    thanks

    /m
    [color=blue]
    >
    > It runs on the port 37 if I remember correctly
    >
    >
    > --
    > Hope this help,
    >
    > --
    > Ignacio Machin,
    > ignacio.machin AT dot.state.fl.us
    > Florida Department Of Transportation
    >
    > "muscha" <muscha@no.spam .net> wrote in message
    > news:%23LVyhvWg DHA.3204@TK2MSF TNGP11.phx.gbl. ..[color=green]
    > > Hi all,
    > >
    > > Is there a way for me to get a webserver current date and time? Probably
    > > using the webrequest object.
    > >
    > > For example:
    > >
    > > WebRequest request = WebRequest.Crea te(address);
    > > WebResponse response = request.GetResp onse();
    > >
    > > response ???
    > >
    > > Thanks heaps,
    > >
    > > /m
    > >
    > >[/color]
    >
    >[/color]


    Comment

    Working...