473,327 Members | 2,081 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,327 software developers and data experts.

Checking whether a Url is valid and working

Hi,

I want to achieve the following programmatically.

Given: A URL which could be a web service also.
Needed: Boolean result whether the given URL is valid and working (Criteria
being it works through the browser (IE)).

I want to cover cases where SSL also comes into picture, dealing with
credentials, certificates etc.

I have not found any documentation which explains how to achieve this. Can
anyone please help me? Just to re-emphasize, I want to do it through .NET c#
code.

Thanks in anticipation,
Nitin M


Nov 23 '05 #1
4 1423
Hello Nitin,

Assuming you have the endpoints before hand or configured and yr running
the web service on IIS, its as simple as making a web request for the endpoint
(.asmx file) and getting a Http 200 status code back. You would use the
System.Net.WebRequest class to make the request.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi,

I want to achieve the following programmatically.

Given: A URL which could be a web service also.
Needed: Boolean result whether the given URL is valid and working
(Criteria
being it works through the browser (IE)).
I want to cover cases where SSL also comes into picture, dealing with
credentials, certificates etc.

I have not found any documentation which explains how to achieve this.
Can anyone please help me? Just to re-emphasize, I want to do it
through .NET c# code.

Thanks in anticipation,
Nitin M

Nov 23 '05 #2
Hi Dilip,

Thanks for responding.

I had tried that earlier, problem is that when I try and connect to a web
service that is SSL enabled, I get a message to the effect "Cannot establish
trust" ...

What's the way out?

Nitin

"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:10**********************@msnews.microsoft.com ...
Hello Nitin,

Assuming you have the endpoints before hand or configured and yr running
the web service on IIS, its as simple as making a web request for the
endpoint (.asmx file) and getting a Http 200 status code back. You would
use the System.Net.WebRequest class to make the request.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi,

I want to achieve the following programmatically.

Given: A URL which could be a web service also.
Needed: Boolean result whether the given URL is valid and working
(Criteria
being it works through the browser (IE)).
I want to cover cases where SSL also comes into picture, dealing with
credentials, certificates etc.

I have not found any documentation which explains how to achieve this.
Can anyone please help me? Just to re-emphasize, I want to do it
through .NET c# code.

Thanks in anticipation,
Nitin M


Nov 23 '05 #3
Hello Nitin,
This is possibly because the server either expects a client certificate
which you arent supplying OR the server doesnt have a certificate with the
same name as the host name. i.e. if yr sever is called abc then yr certificate
should also be issued to abc

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi Dilip,

Thanks for responding.

I had tried that earlier, problem is that when I try and connect to a
web service that is SSL enabled, I get a message to the effect "Cannot
establish trust" ...

What's the way out?

Nitin

"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:10**********************@msnews.microsoft.com ...
Hello Nitin,

Assuming you have the endpoints before hand or configured and yr
running the web service on IIS, its as simple as making a web request
for the endpoint (.asmx file) and getting a Http 200 status code
back. You would use the System.Net.WebRequest class to make the
request.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi,

I want to achieve the following programmatically.

Given: A URL which could be a web service also.
Needed: Boolean result whether the given URL is valid and working
(Criteria
being it works through the browser (IE)).
I want to cover cases where SSL also comes into picture, dealing
with
credentials, certificates etc.
I have not found any documentation which explains how to achieve
this. Can anyone please help me? Just to re-emphasize, I want to do
it through .NET c# code.

Thanks in anticipation,
Nitin M

Nov 23 '05 #4
Hey Dilip,

I found the way out from these links.

http://dotnetjunkies.com/WebLog/saya.../30/20785.aspx
http://weblogs.asp.net/tgraham/archi...12/213469.aspx

Thanks a lot for being patient.

Regards,
Nitin

"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:12**********************@msnews.microsoft.com ...
Hello Nitin,
This is possibly because the server either expects a client certificate
which you arent supplying OR the server doesnt have a certificate with the
same name as the host name. i.e. if yr sever is called abc then yr
certificate should also be issued to abc

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi Dilip,

Thanks for responding.

I had tried that earlier, problem is that when I try and connect to a
web service that is SSL enabled, I get a message to the effect "Cannot
establish trust" ...

What's the way out?

Nitin

"Dilip Krishnan" <dk*******@NOSPAM.geniant.com> wrote in message
news:10**********************@msnews.microsoft.com ...
Hello Nitin,

Assuming you have the endpoints before hand or configured and yr
running the web service on IIS, its as simple as making a web request
for the endpoint (.asmx file) and getting a Http 200 status code
back. You would use the System.Net.WebRequest class to make the
request.

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.geniant.com
Hi,

I want to achieve the following programmatically.

Given: A URL which could be a web service also.
Needed: Boolean result whether the given URL is valid and working
(Criteria
being it works through the browser (IE)).
I want to cover cases where SSL also comes into picture, dealing
with
credentials, certificates etc.
I have not found any documentation which explains how to achieve
this. Can anyone please help me? Just to re-emphasize, I want to do
it through .NET c# code.

Thanks in anticipation,
Nitin M


Nov 23 '05 #5

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

Similar topics

7
by: - ions | last post by:
I have created a JComboBox with its Items as a list of "M" numbers ie. M1,M2,M3.......throgh too M110 (thes are the messier objects, a catolouge of deep sky objects) the user selects of of these...
67
by: Steven T. Hatton | last post by:
Some people have suggested the desire for code completion and refined edit-time error detection are an indication of incompetence on the part of the programmer who wants such features. ...
99
by: Mikhail Teterin | last post by:
Hello! Consider the following simple accessor function: typedef struct { int i; char name; } MY_TYPE; const char *
2
by: Marlene Stebbins | last post by:
I am entering numbers into my program from the command line. I want to check whether they are > INT_MAX. Sounds simple, but I've discovered that if(x <= INT_MAX) { /* use x in some calculation...
14
by: tranky | last post by:
Hi, i'm italian...so...excuse me for my english. I've a little problem....in what manner i can check a textbox for know if it contain only character from A-Z (a-z), numbers (0-9), and underscore...
10
by: Fredrik Tolf | last post by:
If I have a variable which points to a function, can I check if certain argument list matches what the function wants before or when calling it? Currently, I'm trying to catch a TypeError when...
4
by: Tom Bradford | last post by:
Let me first say that I'm sure that this subject has come up before, and so forgive me for beating a dead horse. Secondly, let me say that Python's strength is its dynamic nature, and I don't...
51
by: atv | last post by:
Hi, Just to check, if i set a pointer explicitly to NULL, i'm not allowed to dereference it? Why is that, it's not like it's pointing to any garbage right? Why else set it to NULL. I can remember...
1
by: johnd60 | last post by:
Hi there, First-time poster but long-time lurker. I've been working on an application in VB.NET which will serve as a web-installer on a client machine, looking locally for files on a list...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.