Get URL info

I am building a file that will called a stored function in my DB, passing dynamic emp info to the function. P
ie.
select 'http://server1.test.org:9000/pls/apex/#OWNER#.sis_express_base.display_student_picture?l_fk_student_id=' || B.FK_STU_BASE
from stu_base B
What I don't want to do is hard-code my server info in the URL ''http://server1.test.org:9000/'. I want to grab that based on the the URL info from page I am currently on. Is there anyway to do that?

bobmagan wrote:
Thanks.
Your talking about doing something like this:
'http://' || owa_util.get_cgi_env('http_host')
|| '/'
|| owa_util.get_cgi_env('script_name')
|| '/'
|| owa_util.get_cgi_env('path_info')
|| '/'
|| owa_util.get_cgi_env('query_string')
Is there a way to get everything at once?What webserver are you using? If Apache, then you might be able to use SetEnv to create a new CGI env var that contains exactly what you want since it doesn't exist by default... http://httpd.apache.org/docs/2.2/mod/mod_env.html#setenv
Then you need to use PlsqlCGIEnvironmentList to access it from owa_util...
http://docs.oracle.com/cd/B14117_01/server.101/b12255/confmods.htm#1028003
For example there is already an variable called REQUEST_URI that gets you closer to what you want. You'd need to add the following to your dads.conf to access it...
PlsqlCGIEnvironmentList     REQUEST_URI
Update: SetEnv can't do it either as it only lets you set a variable for the entire instance, not per request. Just concatenate or otherwise you could try SetEnvIf or mod_rewrite has a thing apparently too which looks even more promising and even more fandangled.
Edited by: Capt. Egg on 21/05/2012 22:02

Similar Messages

  • I have just fired up a new ipad, and am not getting the "info" tab in the bar, so I can't sync my contacts from my address book on my macBook Pro ... ??

    Any clues as to how I can get this happening, and sync all my data that I can sync to my iPhone ? I don't seem to be getting all the faclilities I am suppopsed to ... most frustrating.

    With Mavericks you won't get the Info tab, you use iCloud to sync contacts - from http://support.apple.com/kb/PH12117 :
    If you use OS X Mavericks v.10.9 or later, your contacts, calendars, and other info are updated on your computers and iOS devices via iCloud. For more information, see iCloud Help at icloud.com.
    About iCloud : http://icloud.com
    iCloud contacts : http://www.apple.com/support/icloud/contacts/

  • My iphone 5 does not turn on anymore.  when i plug the charger in the apple icon turns on and off but the home screen never shows up.what do i do to fix it? how can i get my info back?

    My iphone 5 does not turn on anymore.  when i plug the charger in the apple icon turns on and off but the home screen never shows up.what do i do to fix it? how can i get my info back?

    from the information you provided i can't tell if it is a hardware problem or a software problem. I do have an idea though, try to press your home button and lock button at the same time.

  • How do I select multiple files under "Get File Info"and lock or unlock all?

    How do I select multiple files under "Get File Info"and lock or unlock them all? It seems to do it automatically when I have 10 or more selected. But how do I lock or unlock 5 or 6 files in one swoop? Thanks

    Select the desired files then press OPTION and select Show Inspector from the Finder's File menu.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • My computer crashed and I no longer have the itunes library. i get an error msg that my iphone is synced to another library - how can I get the info from the phone to the itunes library?

    my computer crashed and I no longer have the itunes library. i get an error msg that my iphone 3g is synced to another library - how can I get the info from the phone to the itunes library without losing everything? How do I delete old audiobooks from my iphone?

    You can transfer itunes purchases:  File>Devices>Transfer Purchases
    The iphone is not a storage/backup device.  The sync is one way - computer to iphone.  The exception is itunes purchases.
    It has always been very basic to always maintain a backup copy of your computer.  Use your backup copy to put everything back.

  • Torch is not working I need to get my info from BB Protect

    My Torch just stopped working and I just got an iPhone.  I need to get my info that is stored on BB Protect and download my pics, etc. into my PC or my new iPhone.  How can I do this?  I have a lot of work stuff in there and I am desperate!

    1. Pics are not backed up to Protect. Are you pics on your REMOVABLE media card in your 9810?
    2. You can only restore Protect backed up data to another BlackBerry. Have you ever backed your 9810 using the BlackBerry Desktop Software?
    3. Get a new BlackBerry Z10... soooo much better than an iPhone... and you can restore your Protect data direct.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • How do I get finder to recognize my hard drive after pulling my hard drive out without eject...? Is my hard drive dead? I see it in disk utility... Can I get my info back?

    I have a seagte back up plus. I pulled my hard drive out without ejecting it and now finder dosn't find it but I see it in disk utility (although I cant repair permissions) How do I get finder to recognize my hard drive after pulling my hard drive out without eject...? Is my hard drive dead? I see it in disk utility... Can I get my info back?
    Thank you so much for any help

    In Disk Utility you need to see a volume or partition in addition to the drive.
    If all you see is the drive, then when you ejected it you proably corrupted the volume or partition on the drive.
    If that is true then your chances of getting anything back are slim at best.
    About the only thing I know that might work not is to send the disk out to a service for recovery. This is going to cost like $$$$.
    Is the data worth that much?
    Allan

  • I synced my iphone too my computer and I got all my husbands info and lost all mine how can I get my info back.

    I synced my iphone too my laptop and got all my husbands info and lost mine how can I get my info back off this laptop.

    hi marie i take you have got your own apple registration, if not you need toregister under your own name & password, if you have then it does sound like you've just plugged it in under your husbands name. lori :-)

  • Hi! I need to load a GET url that si very long. On other browsers, I can load the url. In firefox 3.6, no. There is an addons or a plugin so I can extend this limit? If yes, is possible to load automatically this addons when loading a certain page? thanks

    Hi!
    I need to load a GET url that si very long. On other browsers, I can load the url. In firefox 3.6, no.
    There is an addons or a plugin so I can extend this limit? If yes, is possible to load automatically this addons when loading a certain page? thanks
    The url is sometingh like this (this is correctly loaded, but it could be longer)

    Firefox should have problems with long GET data appended to an URL (long would be over 64k).<br />
    If there are problems then it is possible that an extension is the cause of that.
    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

  • When I take my phone off charge in the morning I get an info box on the front which has the sound trumpet icon with a line through it and the word Mute.  The only way to get rid of it is to reboot the phone any ideas as to how I can stop this happening?

    When I take my phone off charge in the morning I get an info box on the front which has the sound trumpet icon with a line through it and the word Mute.  The only way to get rid of it is to reboot the phone any ideas as to how I can stop this happening?

    Hello cor-el, thanks for your reply. I changed my settings for downloads to desktop and it has appeared on there. When I double click I am asked which program I want to open file. I click firefox and another box "opening install" says I have chosen to open the file which is an application and do I want to save it. This is the only real option so I press save file. I get a box saying this is an executable file which may contain viruses - do you want to run. I press ok and the final box showing C drive file name and desktop appears stating application not found.
    This happens the same whenever I try to install.
    To my untrained eye the application is not being recognised as an application and I cannot work out how to get it to do that.
    My plugin is still showing as out of date.
    Is there anything you could suggest. Thanks for your time.

  • From where i can get the info about javazoom package

    From where i can get the info about javazoom package

    You mean this?
    http://www.javazoom.net/mp3spi/sources.html

  • Get URL by PCD in WD ABAP

    Hello friends,
    I'm developing a web dynpro abap applcation. My problem is when i'm pressing on button that need to open
    bw iview.I am using the method CREATE_EXTERNAL_WINDOW from the interface IF_WD_WINDOW_MANAGER, now I need to send url as paramter.Is there any way to get url by pcd ( to get the url of bw iview )?
    I'm doing it that way and not by calling NAVIGATE_ABSOLUTE method because when bw iview send me back paramters( with EPCM ) i want also to close it.
    Thanks in advanced,
    Udi

    Hi Udi,
    We had a similar requirement where we need to call a Transaction in portal with different values for its parameters.
    Assuming that your BW iView will have NON-CHANGING Url path you can store that path in a abap table ( for multiple reports also) and then get the value when required.
    If you need to pass any parameters with the URL you can concatenate it to the NON-CHANGING url part and send.
    I hope it helps.
    Revert back in case of queries/issues.
    Regards,
    Sumit Oberoi

  • Get Url from a text box

    Hello,
    I have read a couple posts in regards to the GEt URL function
    but couldn't find what I'm looking for.
    Trusting someone can help.
    Here are two reference files
    1- Main swf that loads the movie clip
    with the links
    Swf
    that displays the links I'm opening in a new window
    I'm able to open the url on a new window but couldn't find a
    way to control the height of this window. Please note that the
    links are all inside a text box. They are not separate buttons they
    are just text hiperlinks.
    Please let me know if any of you knows how to control the new
    _blank window height.
    Thanks
    Fe

    Hi. You should consider posting this to either the iPhone forum or the Developer forum. This forum is for discussing the Unix subsystem of OS X...

  • Getting Session Info In A Normal Class

    I want to get session info from a class that is not servlet (generally from in a bean). When we use servlets it is so easy to get session info by just using request.getSession() method. Is it possible to get this session info in a normal class which is not servlet Technology?

    Is it possible to get this session info in a normal class which is not >servlet Technology? No reason you cannot.
    But do remember that normal java classes which arent Servlets/Jsps arent invoked by the container as part of the standard request processing.
    Beans, for example, are instantiated (& reused) from within a Servlet or a Jsp.
    So all you have to do is retrieve the session info (or a part thereof) from within a Servlet/Jsp that's part of the request cycle and pass this data onto the bean when you invoke its methods.
    ram.

  • Help with calling a Get URL

    I am having a problem with calling a series of web pages
    within my movie. I have an index.fla that I publish to html. Within
    the index.html, I am calling multiple swf files to load content.
    Home.swf loads when the index page displays. Then the user clicks
    on any button and each button loads another swf replacing the main
    content with perhaps loading it's own swf files of content also.
    Everything is working fine. However, on one called swf file, called
    students.swf, I also have a menu swf file that is called when
    students loads. This menu swf file has text listed with
    actionscripting calling a data file that causes the text to expand
    and rollout and display a label of the url. When the user clicks on
    the list name I have a get url to the url of the label. Everything
    works fine in the swf files when I test the movies for the swf for
    the menu file and for the student file swf. However, when I publish
    and run the index page and start testing out the student swf that
    is called, the menu will not open up a new browser window with the
    link designated in the get url. I can't figure it out! It works
    fine in the swf files, but not when I test it out through the index
    controlling file. Please Help!!!

    if you're using as2, try adding
    this._lockroot=true;
    to the movieclip that contains getURL, the student file
    swf.

Maybe you are looking for