Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: [Message Deleted]

Started 1 month, 1 week ago by ninjatruck
Site: CodeProject: Discussion Boards. Free source code and programming help  CodeProject: Discussion Boards. Free source code and programming help - site profile
Forum: C#  C# - forum profile
Total authors: 5 authors
Total thread posts: 12 posts
Thread activity: no new posts during last week
Domain info for: codeproject.com

Other posts in this thread:

Christian Graus replied 1 month, 1 week ago
By web app, you mean a windows app that works with the web ? Your app is not ASP.NET, right ? ninjatruck wrote: I am new to C#, This is an odd task for someone who is 'new to C#'. How new is new ? What other languages do you know ? Why are you writing this right now ?

Abhishek sur replied 1 month, 1 week ago
I think it should be always better to ping the server rather than practically loading the page. The site sometimes throws error if proper login to the url is not there. So Please take out the part after the url and ping that. For instance http: // www.amazon.com/exec/obidos/ASIN/B000GELXHY should be placed as http: // www.amazon.com Hope this is working.

ninjatruck replied 1 month, 1 week ago
Well my plan is to use this as part of the code behind class for an ASP.NET website. I know c++, though I'm not very experienced with that either. I'm writing this now to help a friend who wants this for work. The program will read a .csv, and check URLs based on what it reads. I have everything else working great, but checking the URL isn't working correctly. I've only been working with c# for...

Luc Pattyn replied 1 month, 1 week ago
ninjatruck wrote: see if a given URL is valid that depends on your definition of valid, e.g.: - responding to pings; - responding to HTML GET; - responding to HTML POST; - responding to other protocols; ...

ninjatruck replied 1 month, 1 week ago
My mistake, essentially I need to see if the url gives a 404 error.

Christian Graus replied 1 month, 1 week ago
ninjatruck wrote: Well my plan is to use this as part of the code behind class for an ASP.NET website. Why would an ASP.NET site be checking if other sites are valid ? ninjatruck wrote: I know c++, though I'm not very experienced with that either. I'm writing this now to help a friend who wants this for work. Wait - you don't really know C# or C++, or any other language, but you're ...

Saksida Bojan replied 1 month, 1 week ago
It is very hard to make. If you PING to server, you can easly get if the server is accsasible. But as i understand from your original post, you wan't to make sure a link is valid not if server is accsasible. Here the problem rises. Server is easly visible, but it will return a custom 404 page. If you wan't to make for specific sites, you can grab all those sites their custom 404 pages, parse it...

Christian Graus replied 1 month, 1 week ago
Read his answer above. He's been doing C# for a month and that month gives him more experience than a friend who works as a programmer, so he's trying to help him out.

ninjatruck replied 1 month, 1 week ago
I hadn't checked what exception was thrown. Thanks for the idea. Honestly I didn't realize this was such a complicated task when I said I would help.

Luc Pattyn replied 1 month, 1 week ago
He sure is teaching me new things...

 

Top contributing authors

Name
Posts
ninjatruck
4
user's latest post:
[Message Deleted]
Published (2009-11-07 15:43:00)
I hadn't checked what exception was thrown. Thanks for the idea. Honestly I didn't realize this was such a complicated task when I said I would help.
Christian Graus
4
user's latest post:
[Message Deleted]
Published (2009-11-07 16:19:00)
ninjatruck wrote: Honestly I didn't realize this was such a complicated task when I said I would help. Fair enough - you're doing a cool thing to try to help a friend, I am just shocked that based on your limited experience, that he both needs your help, and has a job as a developer.
Luc Pattyn
2
user's latest post:
[Message Deleted]
Published (2009-11-07 15:44:00)
He sure is teaching me new things...
Saksida Bojan
1
user's latest post:
[Message Deleted]
Published (2009-11-07 15:40:00)
It is very hard to make. If you PING to server, you can easly get if the server is accsasible. But as i understand from your original post, you wan't to make sure a link is valid not if server is accsasible. Here the problem rises. Server is easly visible, but it will return a custom 404 page. If you wan't to make for specific sites, you can grab all those sites their custom 404 pages, parse it and check its content.
Abhishek sur
1
user's latest post:
[Message Deleted]
Published (2009-11-07 15:19:00)
I think it should be always better to ping the server rather than practically loading the page. The site sometimes throws error if proper login to the url is not there. So Please take out the part after the url and ping that. For instance http: // www.amazon.com/exec/obidos/ASIN/B000GELXHY should be placed as http: // www.amazon.com Hope this is working.

Related threads on "CodeProject: Discussion Boards. Free source code and programming help":

Related threads on other sites:

Thread profile page for "[Message Deleted]" on http://www.codeproject.com. This report page is a snippet summary view from a single thread "[Message Deleted]", located on the Message Board at http://www.codeproject.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity