Retrieving Referring URL

Hi,
I just had a quick question...
From a servlet I have an HttpServletRequest and an HttpServletResponse, is there any way to retrive the referring URL that called this Servlet? I am trying to track sites that link to my servlets, so I need an archive of which sites most frequently direct traffic to my site?
Thanks in advance
threeFiddy

That only retrieves the host address of the person accessing the site, I am more interested in the page that the person just left, before coming to my site...Is it possible to get that info?
In other words, if foo.com has a link to my site, is there any way to figure out which users are arriving at my site via the link on foo.com??
Thanks,
threeFiddy

Similar Messages

  • Cannot Retrieve referenced URL in wscript file from Local System Account, but not other accounts on the computer.

    Hello,
    I have a WScript File that includes an external resource (js file).
    It works on one computer and it does not work on another computer.
    If I run this file from a normal admin command prompt everything runs fine on both computers.
    If I run this file from the Local System account using PsExec it runs fine on one of the computers and throws an error "Cannot Retrieve referenced URL" on the other computer.
    The reason I want it to run from the Local System account is that it is executed from a Windows Service.
    Is there some setting or some way for the IE cache to get corrupt on the Local System account or something like that?

    JRV,
    You are by far the worst 'support' person I've ever seen. If you aren't going to be thoughtful in providing support, don't pretend. If you're going to pretend, leave your condescension on the shelf. You have provided no thoughtfulness whatsoever to his issue,
    and have in no way improved the discourse. You are arrogant and condescending without exhibiting any intelligence whatsoever. I'm impressed Matt kept calm through your demeaning, counterproductive diatribes.
    Matt,
    First I'd check UAC settings, because I believe that can change how elevation works substantially.
    Second, I would check the versions of wscript.exe on both machines, both in System32 and SysWow, and I'd check for updates bypassing WSUS to make sure there's not something silly going on there (totally a shot in the dark, catch-all theory).
    Have you made any headway in the last few weeks?
    -John
    This is not a support forum and it is not for assistance in fixing broken configurations.  It is a scripting forum. The OP proved that the issue is not the script but the environment it is running in.  You should not get mad just because you are
    not getting satisfaction.
    ¯\_(ツ)_/¯

  • REFERAL url iSSUE

    Hi
    when i browse through my j2EE site/.Net site i am getting the proper referal URL as part of header information . also when i go from the j2EE site to .Net site the referal url is coming properly but when i want to come back form the .Net site to the j2EE site the referal url information is not being sent .
    Please let me know the solution for the same.
    Also since i am getting the referal url in all the other cases there is no issue with the browser or webserver setting
    Regards
    Manasa

    thats just an http header isnt it?
    Try using URLConnection.addRequestProperty() or URLConnection.setRequestProperty()
    Ted.

  • Can not load subscription websites because I don't "allow referring URLs"

    I can't load ejournals (eg, JSTOR) and other sites my public library subscribes to. When I go to the resource, I get the message "Sorry, we were not able to authenticate you for access to this resource. Please adjust your Internet Security software to allow referring URLs." My default is to block third-party cookies; I tried allowing all cookies, and blocking cookies from hclib.org. The last option got me to a page where I enter a barcode, but then to the same message. I tried allowing pop-ups, but that didn't change anything. I've asked a librarian, who told me that I have to allow cookies and possibly pop-up windows, and said security software such as Norton, a firewall, or pop-up blockers could be the problem.
    This is the same problem as http://support.mozilla.org/en-US/questions/880202 , but with Firefox 3.6 on a Mac (I have the same problem with my other browser, Safari), and without Norton or any other security software that could be problematic as far as I know.

    There should still be something on your computer that is blocking the referrer if it isn't Firefox.
    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • Please adjust your InterneWhat do I do with this message: Please adjust your Internet Security software to allow referring URLs.

    I am trying to access Morningstar through my Hennepin County Library Account. When I do so, I get this message:
    Sorry, we were not able to authenticate you for access to this resource. Please adjust your Internet Security software to allow referring URLs.
    How do I do this?

    Hello,
    '''Try Firefox Safe Mode''' to see if the problem goes away. Safe Mode is a troubleshooting mode, which disables most add-ons.
    ''(If you're not using it, switch to the Default theme.)''
    * You can open Firefox 4.0+ in Safe Mode by holding the '''Shift''' key when you open the Firefox desktop or Start menu shortcut.
    * Or open the Help menu and click on the '''Restart with Add-ons Disabled...''' menu item while Firefox is running.
    ''Once you get the pop-up, just select "'Start in Safe Mode"''
    '''''If the issue is not present in Firefox Safe Mode''''', your problem is probably caused by an extension, and you need to figure out which one. Please follow the [[Troubleshooting extensions and themes]] article for that.
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before opening Firefox for normal use again.''
    ''When you figure out what's causing your issues, please let us know. It might help other users who have the same problem.''
    Thank you.

  • Retrieving Entry Point =True,Roles programatically and retrieving their URL

    Hi Team,
    I want to retrieve the roles whose entry point is equal to true using WebDynpro, And display their names.
    When i am trying to display any role name it is displaying with underscores, like if it is content administration role it is displaying like content_admin_role.
    I want it to display it just similar name which will display in portal, like content administration how can i do this?
    And for each and every role i want to bring the role URL correspond to it.
    I tried this and reached upto some extent but not able to open the role perfectly.
    I used the below code for getting the names of the roles.
    Iterator rit = null;
         try
         IWDClientUser clientUser = WDClientUser.getCurrentUser();
         IUser user = clientUser.getSAPUser();
         rit = user.getRoles(true);
         IRoleFactory rfact = UMFactory.getRoleFactory();
         while (rit.hasNext()) {
         String roleName = (String) rit.next();
         IRole role = rfact.getRole(roleName);
         wdComponentAPI.getMessageManager().reportSuccess("Role names1..."+role.getDisplayName().toString());
         wdComponentAPI.getMessageManager().reportSuccess("Role names2..."+role.getUniqueName().toString());
         //wdComponentAPI.getMessageManager().reportSuccess("Role names3..."+rfact.getRolesOfUser(unique,true));
    Also suggest me to retrieve the URL's of respective roles, and it should navigate to that perticular role when i open that URL in browser.
    Thanks in advance.
    Bala

    Hi,
    First of all you want to distinguish the pcd roles from the LDAP roles. To do that you use a IRoleSearchFilter like this:
    IRoleSearchFilter searchFilter = null;
    try {
    searchFilter = roleFact.getRoleSearchFilter();
    searchFilter.setDisplayName("*", SearchAttribute.LIKE_OPERATOR, false);
    ISearchResult result = roleFact.searchRoles(searchFilter);
    if (result.getState() == ISearchResult.SEARCH_RESULT_OK) {
    while (result.hasNext()) {
    String RoleName = (String) result.next();
    IRole role = roleFact.getRole(RoleName);
    You also need to check if the role is assigned to the user, so get the user's roles and compare them to the ones you got from the search result.
    In order to get name correctly use:
    role.getDescription();
    To see if Entry Point = True you do something like this:
    IPcdContext targetobject =(IPcdContext) initialContext.lookup(role.getUniqueName());
    Object object = targetobject.getAttributes("").get("com.sap.portal.pcd.role.EntryPoint");
    if (object instanceof IPcdAttribute) {
    IPcdAttribute att = (IPcdAttribute) object;
    boolean b = att.getBoolean();
    To get the URL of the role you should use:
    string RoleUrl = "http://<server>:<port>/irj/portal?NavigationTarget=ROLES://" + role.getUniqueName().substring(4);
    Best regards,
    Avishai Zamir

  • Referring URL from iTunes store in our web stats?

    Is there a referring URL from the iTunes store? We were wondering how many visitors our itunes podcast generates.

    bump

  • How do i retrieve the url for external window

    Hi forum
    I have created a new application in my existing proj. In the existing proj i have a button on click of which i need to call the view of the new application i hv used the following code, but i dnt know how to retrieve the url for this new application.
    IWDWindowInfo windowInfo =(IWDWindowInfo) wdComponentAPI.getComponentInfo().findInWindows("AgencyFee_ReportsPrinterFriendlyWindow");
         IWDWindow window = wdThis.wdGetAPI().getComponent().getWindowManager().createExternalWindow(url, window name, false);
    Thanks & Regards
    Jaspreet Kaur

    Hi,
    If you have an application associated this window you can create the URL as mentioned below
      WDDeployableObjectPart deployableObjectPart = wdComponentAPI.getDeployableObjectPart();
           try {
              WDURLGenerator.getApplicationURL(deployableObjectPart);
         } catch (WDURLException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
    OR      
         try {
              String url = WDURLGenerator.getApplicationURL("<deployableObjectName>", "<applicationPartName>");
         } catch (WDURLException e) {
              // TODO Auto-generated catch block
              e.printStackTrace();
         IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(url , "title");
         window.show();
    Regards
    Ayyapparaj

  • Retrieve ICM url

    hi, is there a way to retrieve the url of an ICM cached object, if you 'lost it'.
    background. activex controls are blocked in IE these days preventing then to run without user 'click to activate and use this control'. that ruins most of the interaction you can get from controls specially if the page has to be reloaded as the control will then have to be reactivated each time.
    this is specific for the phtmlb:ganttChart rendering that this happens.
    however there might be an easy fix. during the rendering of the control it puts the svg graphic file in the ICM cache, then renders it on the current page like this :
    <embed src="/sap/bc/bsp/sap/sbspext_phtmlb/238084D3CD28DA4687A0FD58332F4374.svg" height="
          298
          px" width="
          657
          px" type="image/svg+xml" pluginspage="http://www.adobe.com/svg/viewer/install/"></embed>
    what i would do, would be to grab that svg file, put it into a js script and then embed that on my page instead. that would eliminate the click to active issue (known workaroudn that works on any type of active x control).
    so ... how do i get a hold of the url that is in the ICM cache. i can se its there with the monitor, is there any way to retireve it, something that binds it to my current IE session or something.
    anyone got any suggestions?

    recoded the phtmlb extension to fit my needs. no need to read out the ICM path anymore.
    there is another post showing how that was done.
    Message was edited by: Christian Hasselbalch

  • Retrieve Portal URL in BSP

    Is there a Function Module or ABAP Object I can use within a BSP that will give me the base Portal URL in which my BSP is being rendered?  I'm specifically looking for something that will return the following URL pattern:
    http://servername:portnumber/irj/portal
    Reason I ask is b/c I need to redirect back to the Business Partner page within Portal CRM, however, within the BSP, the cl_bsp_runtime=>construct_bsp_url method is returning the BSP application URL and not the Portal URL.
    Thanks!

    Hi Matthew,
    I don't know of a function module or method that helps you on getting the path to the portal but maybe the following hints help you to find a solution.
    1. Get the referer out of the Request by using the method request->get_header_field during the first call of your application.
    2. There are 4 tags available in the bsp-extension that might help you to solve your issue. The elements are called: portalEvent (receive events), portalNavigationToObject, portalNavigationRelative and portalNavigationAbsolute. There is also a test Application for the bsp-Tags available called SBSPEXT_BSP where the raising of portal events is shown.
    3. Use client side scripting to determine the url of the surrounding frame.
    4. Try whether the methods GET_EXTERNAL_THEME_ROOT or GET_EXTERNAL_STYLESHEET of the runtime help you to get hold on the portal url.
    These are just hints. More than the portalEvent tag I have never used.
    Hope that helps.
    Best Regards
    Michael

  • Retrieve caller url in doGet()

    In ine of my page there is a link to one of my servlet. Also this servlet can be directly by tyiping on address bar.
    I need to get the calling url withing the doGet method in the servlet.
    both request.getHeader("referer") and request.getAttribute("javax.servlet.error.request_uri") return a null values
    Pls help me

    You can use the request.getRequestURL()

  • Internet Explorer: Contextual Menu, Retrieve Current URL,Grab Selected Text

    Hi,
    How would you do to add an item to the Internet Explorer Contextual Menu that grab the selected text and retrieve the current Url?
    Thanks in advance

    Actually, I would like to retrieve the current URL and the selected text from the browser by default.
    Ubiquitous, Internet Explorer is the first browser I would like to use.
    1. It could be a java application that monitors the active browser on WinNT, and displays the current URL and the selected text of the monitored browser.
    Or
    2. it could be a java script called by the contextual menu of IE that launches an application with specific data from the page when the item is clicked (gives these specific data to a monitoring application)
    Launching the default browser with a URL is OK. However, monitoring the active browser and retrieving its informations, or retrieving its informations after a clik from the contextual menu is quite an exercise ;-)
    Thanks in advance,

  • Retrieving the url of my internet favourites

    I can retrieve a list of my internet favourites using function module 'TMP_GUI_DIRECTORY_LIST_FILES' but does anyone have any idea how I can get hold of the url that these point to ? I can see it in the file properties but have no idea how to pick it up.
    thanks.

    myUrl := p_portlet_record.page_url;
    where p_portlet_record is the input parameter for the standard show procedure.

  • Retrieving an URL content in ABAP

    Hi Experts,
        I have to read the content of http://.......... URL content to ABAP. Is there any method or function module to read??
    Thanks and regards,
    Venkatraman.N.

    Hi!
    Take a look at the folliwing programms and examples:
    RSHTTP*
    They work really good.
    Best regards,
    Esteban

  • Retrieve portal url dynamically.

    Hi,
    Could anybody pls let us know how to identify the portal Url dynamically using a function module or SAP Table?
    We want to put this URL in the notification e-mail so it is dynamic when the object is moved to Quality and production systems.
    Thanks in advance.

    One way to make Portal URL dynamic is to create a ztable with fields ABAP system id and portal URL.
    Select Portal URL from this table based on the sy-sysid.
    By this way you dont have to change your code. Just change table entry on each server.
    Hope this helps!
    Monalisa

Maybe you are looking for

  • Filter from the last 12 months

    Hello I want to create a filter that shows the last 12 months os date. I am connect to a SQL database in which the database field is a date type. How do I create a filter that compares the actual date y and database field with the date. I can do it S

  • How to separate two thumbnail images that open same picture?

    Just when I think I have some code figured out I cannot for the life of me figure this out... Ok the fourth page of the website is a portfolio page with 16 thumbnails (4 across 4 down) which opens a larger pic on the same page to the right. I can't f

  • Moving inventory postings from one of profit center to another

    Hi SAP Gurus, We have some initial inventory postings posted to a profit center. How can we move these inventory postings to another profit center. Thanks, Ravi.

  • Changing from full recovery model to simple in sql 2012 always on

    how do I change from a full recovery model to simple in an always on sql 2012 setup? When I try to change it it gave this error

  • When do we post Deposit in SAP B1?

    Hi, I have a doubt related to posting Deposit after posting Incoming Payment. When can we post Deposit in SAP after raising Incoming Payment. Is it when the cheque is deposited into the bank for clearance.