# How to extract the url?

**URL:** <https://www.ruby-forum.com/t/how-to-extract-the-url/160448>\
**Category:** Ruby-Forum\
**Created:** [February 16, 2009, 3:08pm UTC](https://www.ruby-forum.com/t/how-to-extract-the-url/160448 "2009-02-16T15:08:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wrapster](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/df705f/32.png) [@wrapster](https://www.ruby-forum.com/u/wrapster)\
**Post date:** [February 16, 2009, 3:08pm UTC](https://www.ruby-forum.com/t/how-to-extract-the-url/160448/1 "2009-02-16T15:08:32Z")

</div>

Hi,

I am trying to extract the url and base the processing on it…  
Have written a series of webrick servlets for this purpose…  
But am unable to extract the url.

Supposing i have 2 forms, say

bla bla bla2 bla2

How do i extract the url from these 2 forms and process accordingly?  
i tried with req.uri , but webrick reports an error…  
how do i call it?

Thanks
