473,394 Members | 1,843 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

test in code that another web server is operational

How to write code to test that a web server is currently serving pages ?

For example, in a config file I have :

<DocumentServer>http://docserver.domain.net/docs/en-us/doc</DocumentServer>

In code , I'd like to test that docserver.domain.net is currently serving
pages .... (before including URLs to this server in links on a page that I'm
constructing.
Jun 26 '06 #1
1 1043
The easiest way to test its serving pages is to actually request one, and
examine the status code of the reply or simplt read the response..

..NET has classes to assist you. Good examples in the quickstart.
http://www.asp.net/QuickStart/howto/...lientGET.aspx#
--
Regards

John Timney (MVP)
"John A Grandy" <johnagrandy-at-yahoo-dot-com> wrote in message
news:ei**************@TK2MSFTNGP02.phx.gbl...
How to write code to test that a web server is currently serving pages ?

For example, in a config file I have :

<DocumentServer>http://docserver.domain.net/docs/en-us/doc</DocumentServer>

In code , I'd like to test that docserver.domain.net is currently serving
pages .... (before including URLs to this server in links on a page that
I'm constructing.

Jun 26 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Reply Via Newsgroup | last post by:
Folks, I am using Apache 1.3.x with PHP 4.3.x and MySQL v4. Short question: Before I put my web form available on the internet, how can I test it from mis-use in such that special characters...
7
by: Dave Smithz | last post by:
Hi There, I have taken over someone else's PHP code and am quite new to PHP. I made some changes and have implemented them to a live environment fine so far. However, I now want to setup a...
6
by: Member | last post by:
Hi group. I have been working with ColdFusion and SQL Server for some time now....abour 4 years I guess. I have developed various web applications successfully. The scenario I am in is that a...
11
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in...
4
by: Benne Smith | last post by:
In our company, i have three servers; 1) a development server (mine only - here i make daily changes and test my stuff) 2) a test server (for the users to test milestone builds - changes weekly)...
6
by: Damien Sawyer | last post by:
Hello - I'm having a serious problem with IIS on Windows XP pro. Whenever I try to run ASP pages, I get HTTP 500 - Internal server error This behaviour happens identically, on two 'totally...
3
by: Vjay77 | last post by:
As a result from who is I am getting this: > > NOTICE AND TERMS OF USE: You are not authorized to access or query our WHOIS database through the use of high-volume, automated, electronic...
2
by: Jer | last post by:
I just upgraded to SQLServer 2005 Standard. I do development in a database on one server. When a solution is completely tested, I move it to the operational database on a different server. With...
0
by: eduardo.ernandes | last post by:
I am with an intermittent problem in my Asp.Net application. Occurs the error "The server is not operational" in the authentication of the LDAP after the application to go off an error of Timeout...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.