Capture full URL with CF CGI variable

I need to capture an entire URL and send it in the body of an
email, using CFMAIL. I'm looking at my CGI variables using CFDUMP,
but can't seem to get the entire URL string, including the
http:// or https://. Help?

That part of the URL is intended for the browser, and is not relevant to the server so is not transmitted with the request, so it never gets to the web server, let alone the CF server.
If you need that info, you're gonna need to send it some other way.
Adam

Similar Messages

  • Capturing FULL HD with a Panasonic HMC150

    Since the Panasonic AG-HMC150 does not have a firewire port on it does anyone have any recommendations on how to make this camera work with Onlocation?

    You are pretty much stuck until they add support for HDMI, which they might not do because you can't control the camera's record functions. 

  • Capture full httpservice url?

    is there a simple way to capture the full url (parameters included) when a httpservice is sent?  I'd like to put the url in a variable for later use.

    You could look at the url and body properties on the corresponding HTTPRequestMessage and reconstruct the URL (assuming method="GET"). You can get this message from either the asynchronous completion token returned from calling httpService.send(), or via an InvokeEvent's message property by registering an invoke="invokeHandler(event)" listener on <mx:HTTPService>.
    If you're not using a server side gateway / proxy, the client-side mx.messaging.channels.DirectHTTPChannel is the class that manages the HTTP request. It sets up the query parameters to append to the url in its mx_internal::createURLRequest() method around line 234:
                var urlVariables:URLVariables = new URLVariables();
                var body:Object = httpMsg.body;
                for (var p:String in body)
                    urlVariables[p] = httpMsg.body[p];
                params = urlVariables.toString();

  • Button URL With Variables widget that works with HTML5

    Hello,
    I'm currently using the "Button URL With Variables widget 6.x" developed by CaptivateDev. com. Unfortunatley it is not compatible with HTML5 projects in Captivate 7. Do you know where I can find one?
    Thanks,
    Stewart

    I don't know yet about any widget available for HTML5 output, with the exception of the interactions included with Captivate.

  • Can I capture the url of the page I am on and set it to a variable??

    Hi..
    I was wondering how I can capture the url of the page that I am on and then set it to a variable??? is that possible???
    Thx
    Rich

    Try this.
    String url =request.getRequestURI();
    Hope this helps.
    Fred

  • Design view wont display any items referenced with full url

    Hi
    i have referenced serveral items (css and images) with full urls rather than relative.
    so in design view now i can only see things if i clikc on the live mode.
    now i know that there is a way to view items that have full url references WITHOUT clicking on live mode. I have done it before.....but for the life of me i cant figure it out right now.
    what am i missing to make this viewable in design view without using live mode?
    thanks
    sam

    View > Display External Files.
    In my experience, this doesn't always work. AFAIK, Dreamweaver makes the retrieval of external files a low priority, so it might not seek the external file if other activity takes precedence.

  • Using owa_util.get_cgi_env to get a cgi variable

    Using Forms 10g, on a UNIX server, I am trying to call this function: get_cgi_env('HTTP_CAMS_HTTP_USER') and assign the value for use in processing. I am trying to do this in my on-logon trigger of the form.
    Forms run-time is giving me :
    numeric or value error ORA 06512 at SYS.OWA_UTIL, line 356 ORA-06512 at SYS.OWA_UTIL line 375..
    Is it possible to use this function in Forms 10g running the 10g OAS, which is supposed to be based upon APACHE?
    Thank you,
    Tony Miller
    Webster, TX

    The value that the SSO package we use stores. It is the user's user id. We also have the actual session id in the SSO application available. AT this time, when we fire up a forms session, we have an .shtml file that calls the form url with a parameter, the session ID (from a cgi variable available to the .shtml file). I am trying to access that cgi variable so we DON'T need a parameter being passed on the url line for our main Form into the application..
    Thank you,
    Tony Miller
    Webster, TX

  • How to read the param in an URL with an applet???

    I will like to read the in an URL with an applet param (after the ?)
    I need the equivalent of: String parm1 = request.getParameter("param"); but for applet
    I think the HttpServletResponse doesn't work in an applet ???
    Tell me if I'am right
    Thanks for your help
    Benoit

    Hi
    What you can do is, just get that URL in the web page. Like as we can get in the ASP. Store the required information in the variables and pass this information as parameters to the applet.
    Hope this helps!

  • Apache mod_rewrite CGI Variables in ColdFusion

    I have an environment that consists of Apache 2.2.8 and ColdFusion 8 running on Solaris 10.
    I am attempting to pass a CGI variable to ColdFusion as part of an Apache Rewrite rule, however I am not able to do so.
    The Rewrite rule set exists as follows:
    RewriteCond %{SSL:SSL_PROTOCOL} ^TLSv1$
    RewriteCond %{HTTP_REFERER} !^$ [NC]
    RewriteRule ^.*$ %{HTTP_REFERER}?result=pass [L,R,E=HTTP_MYVAR:rw]
    The rule set works with the exception of the availability of the CGI variable HTTP_MYVAR within the ColdFusion CGI scope.
    I am testing for the existance of the variable within ColdFusion as follows:
    <cfif (structkeyexists(cgi, 'CGI.HTTP_MYVAR'))>
       CGI.HTTP_MYVAR exists as:<cfoutput>#CGI.HTTP_MYVAR#</cfoutput>
    <cfelse>
       CGI.HTTP_MYVAR does not exist.
    </cfif>
    Does anyone have experience creating variables in an Apache Rewrite rule set and evaluating them in ColdFusion?
    Thanks in advance for any assistance.

    OK, as part of my work-avoidance for the day, I have replicated the work I did in NZ on my other laptop.
    I put this in httpd.conf
    Alias /junk C:/webroots/junk
    <Directory "C:/webroots/junk">
        Options Indexes FollowSymLinks
        AllowOverride None
        Order allow,deny
        Allow from all
        RewriteEngine  on
        RewriteBase    /junk/
        RewriteRule (.*) $1 [E=MYCUSTOMVARIABLE:mycustomvalue]
    </Directory>
    And my test code is this:
    <cfoutput>
    CGI.MYCUSTOMVARIABLE = [#CGI.MYCUSTOMVARIABLE#]<br />
    </cfoutput>
    I restart Apache, run the template, and I get this:
    CGI.MYCUSTOMVARIABLE = [mycustomvalue]
    How does this differ from what you're doing?
    Adam

  • Since installing Lion I keep getting the error message 'there was a problem connecting to the server. URLs with the type 'file:" are not supported"' How can I fix this?

    since installing Lion I keep getting the error message 'there was a problem connecting to the server. URLs with the type 'file:" are not supported"' How can I fix this?

    A Davey1 wrote:
    Not a nice answer!
    Posting "Check the 'More like this'" area and not simply providing the answer is a great way to make these groups worthless.
    You're ignoring context.  On the old Apple Discussion Groups I never posted replies like that, instead giving people relatively detailed answers.  The new Apple Support Communities made things worse by introducing certain inefficiencies.  Then came Lion.  The flood of messages that came with Lion required a painful choice for any of the people who had been helping here: (1) Give quality responses to a few questions and ignore the rest.  (2) When applicable, give a brief answer such as the one that you found objectionable.  (3) Give up all the other normal activities of life and spend full time trying to answer questions here.
    People who needed help with Lion problems seemed to have trouble discovering existing message threads that described how to solve their problems.  I never posted the suggestion of "Check the 'More like this' area" without verifying that the help that the poster needed could be found there.  Even doing that, what I posted saved me time that I could use to help someone else.
    The people helping here are all volunteers.  None of them is being paid for the time they spend here.  They all have a life outside of Apple Support Communities.  It's arrogant of you to demand that people helping here spend more time than they already do.

  • How to Display Full URL in Address Bar?

    I'm using Firefox 14.0.1 on a new computer running Windows 7 Home Edition. I cannot for the life of me figure out why my URLs are getting truncated. For instance, right now, all I can see in my address bar for this website is "https://support.mozil;" if I type in yahoo.com I end up with "http://www.yahoo.co." I can scroll through in the address bar to see the rest of the URL, but I'd like to see the whole thing at once!
    I know you can type about:config into the address bar and change the value of browser.urlbar.trimURLs to false, but I tried that and it doesn't do a thing. I have Firefox on my old computer, and it's not giving me the issue there. So perhaps I have an interfering plugin? The only new thing I have on this system is HP SimplePass (I can't stand HP software). Anyone know what might be causing the issue?

    I, too, had the truncated URL in the address bar. (Firefox 16.0.2 on Windows 7 Home Premium)
    These measures did not help:
    # about:config and change browser.urlbar.trimURLs to false
    # Help > Troubleshooting Information > Reset Firefox
    This measure did help:
    # uninstall HP SimplePass
    I had had the full URL in the address bar while running HP SimplePass, so I do not believe that they are inherently incompatible. I'm just saying these measures, in this order, gave me back the full URL.

  • How do I get Full Url to a Document?

    I am querying Document Folders using the IDocument Interface. The query returns the Url, but only a partial Url. I need to Full Url path in order to send to a user to access it. The URL being returned is only the last part (e.g. "_477_0_0_18/DeveloperGuide_PlumtreeNETWebControls_v2-1.pdf"). I need the first part (e.g. the http://.....)
    Sample Code:
    Protected Sub RetrieveDocumentDetails(ByVal intFolderID As Integer)
    Dim customDataSet As New DataSet Dim newTable As New DataTable("TestTable") Dim newRow As DataRow
    'Initialize Custom DataSet newTable.Columns.Add("CardName", GetType(String)) newTable.Columns.Add("DateCreated", GetType(String)) newTable.Columns.Add("DateModified", GetType(String)) newTable.Columns.Add("DocOwner", GetType(String)) newTable.Columns.Add("DocumentUrl", GetType(String)) 'newTable.Columns.Add("DocDescription", GetType(String))
    'Instantiate Plumtree Remote Session Dim IPTRemoteSession As IRemoteSession IPTRemoteSession = RemoteSessionFactory.GetExplicitLoginContext(New System.Uri("http://cgi-clay01.clayton.com:8111/ptapi/QueryInterfaceAPI.asmx"), "Administrator", "")
    'Query the Plumtree Document Manager passing in the Folder ID Dim PTDocumentManager As IDocumentManager = IPTRemoteSession.GetDocumentManager() Dim PTDocumentQuery As IDocumentQuery = PTDocumentManager.CreateQuery(intFolderID) Dim PTQueryResults As IObjectQuery = PTDocumentQuery.Execute() Dim i As Integer
    'Loop throught the Document Query Results and load into the Custom Dataset For i = 0 To PTQueryResults.GetRowCount - 1 Dim PTDocument As IObjectQueryRow = PTQueryResults.GetRow(i)
    newRow = newTable.NewRow() newRow("CardName") = PTDocument.GetName() newRow("DateCreated") = PTDocument.GetCreated() newRow("DateModified") = PTDocument.GetLastModified() newRow("DocOwner") = PTDocument.GetOwner() newRow("DocumentUrl") = PTDocument.GetStringValue(DocumentProperty.URL) '(I NEED THE FULL URL HERE) 'newRow("DocDescription") = PTDocument.GetDescription()
    newTable.Rows.Add(newRow) Next customDataSet.Tables.Add(newTable) customDataSet.AcceptChanges()
    'Bind Custom Dataset to Datagrid DataGrid1.DataSource = customDataSet DataGrid1.DataBind()
    End Sub
    Paul

    You can insert layout breaks to change the number of columns throughout your document. This screenshot is from a newsletter I did in Pages 1/iWork '05, but this function is unchanged.
    You should change your profile information that appears at the bottom of your posts. Mac OS 9 hasn't been a current OS for over 10 years & there is no way to run Pages on it. If you're not sure what version of Mac OS you're using, click the  in the upper left of your menu bar & choose About This Mac.

  • Why getRequestDispatcher method cannot accept full URL?

    Examples*
    This code works well:
    public void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              String url = "/jsp/pageStart.jsp";
                    /* requestDispatcher is NOT null */
              RequestDispatcher requestDispatcher = getServletContext()
                        .getRequestDispatcher(url);
              requestDispatcher.forward(request, response);
         }This code doesn't work, get NullPointerException, requestDispatcher is null:
    public void doPost(HttpServletRequest request, HttpServletResponse response)
                   throws ServletException, IOException {
              String url = "http://localhost:8080/mymvc/jsp/pageStart.jsp";
                    /* requestDispatcher is null */
              RequestDispatcher requestDispatcher = getServletContext()
                        .getRequestDispatcher(url)
              requestDispatcher.forward(request, response);
    Notes*
    - JSP path is \src\main\webapp\jsp\pageStart.jsp
    - I am sure, I can manually open 'http://localhost:8080/mymvc/jsp/pageStart.jsp', just copy and paste this url into address of new browser window.
    - Base url is http://localhost:8080/mymvc/servlet/ControllerServlet
    - I use Servlet mapping:
    <servlet-mapping>
         <servlet-name>ControllerServlet</servlet-name>
         <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    <servlet>
         <servlet-name>ControllerServlet</servlet-name>
         <servlet-class>controller.ControllerServlet</servlet-class>
    </servlet>
    Questions*
    1. Why getRequestDispatcher method cannot accept full URL?
    2. Could you please explain to me the reason why ? and please provide me the better resolutions.
    Thanks u in advance!

    As per Java API documentation:
    ServletContext#getRequestDispatcher(String path)
    The pathname must begin with a "/" and is interpreted as relative to the current context root.
    For details: [http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getRequestDispatcher(java.lang.String)|http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletContext.html#getRequestDispatcher(java.lang.String)]
    ServletRequest.html#getRequestDispatcher(java.lang.String)
    To allow RequestDispatcher objects to be obtained using relative paths that are relative to the path of the current request (not relative to the root of the ServletContext), the getRequestDispatcher method is provided in the ServletRequest interface. The pathname specified may be relative, although it cannot extend outside the current servlet context.
    For details : [http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getRequestDispatcher(java.lang.String)|http://java.sun.com/javaee/5/docs/api/javax/servlet/ServletRequest.html#getRequestDispatcher(java.lang.String)]

  • Need to keep track of URL and a count variable

    Can anyone suggest the best way to keep track of a URL and a count variable associated with each URL. I have started using 2 List objects. When I add a URL I also add a 1 in the count List Object. I am using List Objects because I must be able to sort them and search through them.
    Can anyone verify that I am going about this the correct way?
    Thanks

    I would probably use a TreeMap that referenced the counter.

  • How to set Internet Explorer to return full URL for the Print Job Name

    Hello all,
    On printing a web page from IE 6, 7, and 8 using javascript window.print command, the name of the printjob is truncated only to the first 63 characters. Unlike IE 9, it returns the full URL, or at least longer.
    Does anyone know the way to set those IE versions to return full or wider URL string?

    Sorry for lack of detail in my first post. I don't believe this has anything to do with javascript. The javascript command window.print() simply gives out command to the browser to print the web content.
    The situation is that, I open a webpage, for example,
    http://www.google.com.my/#sclient=psy&hl=en&source=hp&q=some+long+parameter+value+in+the+query+string&pbx=1&oq=some+long+parameter+value+in+the+query+string
    Then I right-click on the page and choose 'Print...' to print the page to a printer. Therefore, Windows spooler system will queue the print job with all the metadata about the doc that is printing. 1 of this metadata is document/printjob name, which are
    set to the name of the doc. In case of a web page from IE, this field will be populated with the URL of the page.
    I notice that, when I do printing from IE 9 of the above URL, the field document/printjob name is the whole URL string. But while in IE 8 and below, only the first 63 characters of the URL are populated into the field. (I.e:
    http://www.google.com.my/#sclient=psy&hl=en&source=hp&q=some+l)
    I believe this field is set by the application that sent out the printing command to the spooler. In this case, it's IE.
    So, my question is, is there any reg settings for IE 8 and below to force them to put in the whole URL in that field instead of truncates them to only 63 characters?

Maybe you are looking for