# Verify if an URL exist

**URL:** <https://www.ruby-forum.com/t/verify-if-an-url-exist/87779>\
**Category:** Rails\
**Created:** [March 5, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/verify-if-an-url-exist/87779 "2007-03-05T22:47:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![j-merrill](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@j-merrill](https://www.ruby-forum.com/u/j-merrill)\
**Post date:** [March 5, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/verify-if-an-url-exist/87779/1 "2007-03-05T22:47:09Z")

</div>

Hi all,

How can I know if an givel URL really exists?

My users add URLs, but I have to validade that they exists, like a ping  
to the URL.

Thanks

---

<div class="post-metadata">

**Author:** ![j-merrill](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@j-merrill](https://www.ruby-forum.com/u/j-merrill)\
**Post date:** [March 5, 2007, 11:10pm UTC](https://www.ruby-forum.com/t/verify-if-an-url-exist/87779/2 "2007-03-05T23:10:07Z")

</div>

> How can I know if an givel URL really exists?
> 
> My users add URLs, but I have to validade that they exists, like a ping  
> to the URL.

open-uri…

---

<div class="post-metadata">

**Author:** ![j-merrill](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/aeb1de/32.png) [@j-merrill](https://www.ruby-forum.com/u/j-merrill)\
**Post date:** [March 5, 2007, 11:11pm UTC](https://www.ruby-forum.com/t/verify-if-an-url-exist/87779/3 "2007-03-05T23:11:36Z")

</div>

Philip H. wrote:

> > How can I know if an givel URL really exists?
> > 
> > My users add URLs, but I have to validade that they exists, like a ping  
> > to the URL.
> 
> open-uri…

Ok, thanks
