newbie: cgi,read URI

Ask a Question related to Ruby, Design and Development.

  1. #1

    Default newbie: cgi,read URI

    Hello Newsgroup,

    iīm a newbie and work on a ruby 1.8, an apache 1.3, modruby and eruby and
    use it in the cgi-version

    i just want to get the requested URL

    i tried

    puts cgi.request_uri()

    but unfortunatly nothing happens.

    for example:
    if there is the URL [url]http://test.test.de/test.rbx?test=1[/url]

    i just need as a string test.rbx?test=1

    if there is a faq for such things, so please quote the link, i havenīt found
    it here in the newsgroup

    so much thanks

    Robby


    Robby Jansch Guest

  2. Similar Questions and Discussions

    1. Newbie needs to read CSV or TSV value and display in a web page
      As the subject says, I need to be able to read a CSV or TSV file and display the results on a web page. I am currently reading the Learning Perl...
    2. A newbie? Welcome to comp.os.linux.setup, read this first if you're new here (FAQ)
      ATTENTION NEW READERS New reader? Great! Welcome! Here's how to make best use of this newsgroup, effectively getting yourself a slice of the...
    3. Newbie: How to read metadata from a windows DLL
      Greetings! If you will forgive a newbie, I'll try to explain what I want to do. (Googling wasn't really successful in this case, since I don't know...
    4. Kernel newbie: filesystem mounts as read-only
      Hello all, Basic situation is that I am tinkering with kernel rebuilds. I am using the source tree supplied by the USAGI project (for...
    5. [Newbie] "failed ro read /modules/mosules-info"
      Sorry, Subject should have read "failed ro read /modules/modules-info" On Fri, 27 Jun 2003 10:44:09 +0200, St Bernard...
  3. #2

    Default Re: newbie: cgi,read URI

    >>>>> "R" == Robby Jansch <r.jansch@vva.de> writes:

    R> if there is the URL [url]http://test.test.de/test.rbx?test=1[/url]

    R> i just need as a string test.rbx?test=1

    ENV["REQUEST_URI"] will give you /test.rbx?test=1

    --

    Guy Decoux
    ts Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139