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();

Similar Messages

  • 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

  • How to capture full screen

    Can I capture full screen and save it as a image?
    Thanks

    Yes, use this robot method, where the bounds it requires can come from GraphicsEnvironment.

  • Get ClientContext from Full sharepoint url?

    I am receiving a full sharepoint url like 'http://TestServer/sites/TestSite/TestSubSite/_vti_bin/lists.asmx'
    I know the following code will not work as the url does not directly reference a site.
    using (var context = new ClientContext(http://TestServer/sites/TestSite/TestSubSite/_vti_bin/lists.asmx))
    My question is...considering urls are provided to me, what logic can I apply to modify the url so that I am only referencing the subsite 'http://TestServer/sites/TestSite/TestSubSite'?
    Thanks heaps.

    You can do it easily with string manipulation:
    string url = "http://TestServer/sites/TestSite/TestSubSite/_vti_bin/lists.asmx";
    int index = url.IndexOf("/_vti_bin");
    if (index > 0)
    string newurl = url.Substring(0, index);
    Saifullah Shafiq
    Blog:  
    Twitter:   LinkedIn:
      Facebook:
      Google+:
      Latest Book:
    A Practical Guide to SharePoint 2013

  • Dynamic HTTPService URL

    How about when i wanted my HTTPService url to become dynamic
    that it gets from an external text file or xml file. Here is an
    exampl...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    xmlns:remoting="com.oreilly.
    programmingflex.rpc.*" layout="absolute"
    initialize="initializeHandler(event)">
    <mx:Script>
    <![CDATA[
    private function initializeHandler(event:Event):void {
    textService.send( );
    private function resultHandler(event:Event):void {
    textArea.text = String(textService.lastResult);
    ]]>
    </mx:Script>
    <!--<mx:HTTPService id="feedRequest" url="ip.txt"
    result="resultHandler(event)" useProxy="false"/>-->
    <mx:HTTPService id="textService" url="
    http://yourdomainname.com/ip.xml"
    result="resultHandler(event)" />
    <mx:TextArea id="textArea" width="500"/>
    <mx:VideoDisplay id="vid"
    source="{textService.lastResult.subscribers.thevideo}" width="450"
    height="338" x="20" y="75" />
    </mx:Application>
    As you can see my HTTPService URL points to a file named
    ip.txt, the file includes my database URL where i will get my files
    to be played in my VideoDisplay. Is there anybody who can help me
    with this stuff. any reply would be very much appreciated.
    thanks!!!

    Are you asking if you can make the URL property of the
    HTTPService that points to the textService dynamic?
    You can bind the property to some local variable that is
    dynamically built:
    <mx:HTTPService id="textService" url="{someXMLFilePath}"
    result="resultHandler(event)" />
    The someXMLFilePath variable can be built in the
    initializeHandler ( or where ever you want).

  • Httpservice url property problem

    hello everyone
    I need to include non latin characters in my httpservice url property. It points to a file. (http://www.myurl.com/nonLatinCharactersInFilename.xml)And its giving me errors.
    When I check the error, the url appears like so: http://www.myurl.com/??????????????????.xml
    Im using these character set everywhere in the code and there are no problems except when im sending the httpservice call.
    I also have same characters in the result event. and theres no prpblem with that.
    Any ideas how I can include these file names in the url property? or is there another way?
    In my app the user clicks a list (of file names with non latin characters) and an http service is sent to load the corresponding file to a richEditableText component.
    every thing except the non latin character part works fine
    any help in the right direction will be appreciated.
    thanx

    Hello,
    I am not shure, but I think you have to use a webserver, with
    a folder directing to your desktop. Then you can use something like
    that:
    http://localhost/Desktop.
    Otherwise you can try file:///C://Documents and
    Settings/[username]/Desktop/flex/...xml
    I hope this will help

  • HOW TO CAPTURE FULL-RES IN QUICKTIME????

    Hi
    A friend of mine who doesn't have FCP needs to capture full-res DV Quicktimes of DV & DVCAM tapes.
    However, when I select "device native" in the Quicktime Recording prefs, Quicktime captures a 640x480 movie, not a 720x480! I encounter this issue despite capturing from several different decks.
    Now, the 640x480 recording looks squished; when I manually change that recording's resolution to 720x480, the image appears to be the proper aspect ratio.
    But why isn't Quicktime capturing in DV's proper resolution to begin with? Please advise.
    --Tasty

    Simple answer:
    Don't use the new "One Click" recording feature found in the Mac version of QT Pro if you wish to further edit the file in DV editing apps.
    The button says that it will create a .mov file. Quicktime doesn't use the "rectangular" pixels (wrong phrase but you know what I mean) found in a DV source file.
    Slower computers may also notice a significant "frame drop" when making these recordings.
    The file created by QT Pro is correct. A 4:3 file should be 640X480 in dimensions. It is only when these 4:3 files are imported into DV editing app (iMovie, FCP) that you notice the change.
    Since you must have QT Pro to make these "recordings" use its Movie Properties/Visual Settings window to change the dimensions.
    If you use a DV source you are better served by importing the file using iMovie (or other apps).
    Square pixels vs. rectangular pixels.
    Your friend should import the .dv files using a DV editor.

  • Insert variables from script into HTTPService url

    I'm trying to insert values from script into a HTTPService
    url. How do I go about doing this? I tried the code below, but it
    gives an error. Can anybody help?
    <mx:HTTPService
    id="httpCall"
    url="
    http://api.service.com/user/{userName}/list?count={apiCount}&offset={(apiOffset)}&sort={ap iSort}&appkey=1234"
    resultFormat="e4x"
    result="callHandler(event);"
    fault="httpFaultHandler(event);"
    showBusyCursor="true"
    />
    <mx:Script>
    <![CDATA[
    import mx.controls.Alert;
    import mx.rpc.events.FaultEvent;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var userName:String = "myName";
    private var apiCount:uint = 10;
    private var apiOffset:uint = 0;
    private var apiSort:String = "desc";

    Set the HTTPService properties in an AS function.
    <mx:HTTPService id="httpCall" resultFormat="e4x" ...
    result="callHandler(event);" ...../>
    private function getUserData():void
    var sURL:String = "
    http://api.service.com/user/"
    _ userName + "/list:;
    var oRequest:Object = {count:apiCount,offset:apiOffset,
    sort:apiSort, appkey:"1234" }
    httpCall.url = sURL;
    httpCall.send(oRequest);
    Tracy

  • Capturing full signal-urgent

    Dear all,
    urgent advise on capturing full signal.I have build a simple model to measure the phase and amplitude of 2 incoming signal.My signal are of only 0.1 seconds and have Voltage of 2 V. I am using SCB 68 board.For some reasons my labview 8.5 either capturing half the signal or 3/4 of the signal and i realise that my labview need to be synchroize with my amplifer in order to capture the full signal.Can some 1 pls advise me if theres anything wrong with my model? 
    Attachments:
    current.1vi.vi ‏327 KB

    Hi
    I have just had a quick look at your code and I am unable to see what the issue is from that. You mentioned that you need to synchronize with your amplifier, can you elaborate on this? Is the signal that you are trying to capture a continuous signal or is it just a finite signal? If it is finite and only lasts for 0.1 seconds it may be that you need to put in a start trigger so that you start acquiring data at the correct point each time. Are you missing the beginning or end of the signal?
    Once I have some more information about your application I should be able to help you out.
    Regards
    Beejal S
    NI UK & Ireland

  • ACE Capture full size Packtes

    Hi,
    i was seeking the switch to capture full size packets on the ACE Mdule with the the capture command.
    The Docs say only that the capture must be configured to jumbo-frames but i have not found how to do this.
    Sven

    To enable the packet capture function on the ACE for packet sniffing and network fault isolation, use the capture command in Exec mode. As part of the packet capture process, you specify whether to capture packets from all input interfaces or an individual VLAN interface.
    http://www.cisco.com/en/US/docs/interfaces_modules/services_modules/ace/v3.00_A1/configuration/administration/guide/managesw.html#wp1035160

  • HTTPService URL

    I am working on my first Flex and CF Project. The project
    works when I run it locally and on a remote CF server. The problem
    I have is with coding.
    I currently have variables defined for running locally and
    for running on the server. I am using comments to manually change
    which variables will be used for local and which ones to use for
    deploying to a remote server.
    For example,
    the server needs a full path (d:\home\name\wwwroot\...)
    locally I use (c:\coldfusion8\wwwroot\...).
    Local code uses the local CF server
    <mx:HTTPService id="getDataFile"
    url="
    http://localhost:8500/com/xml/movieData.xml"
    resultFormat= "object"
    result="onResult(event)">
    </mx:HTTPService>
    remote code uses the full url
    <mx:HTTPService id="getDataFile"
    url="
    http://www.somesite.com/com/xml/movieData.xml"
    resultFormat= "object"
    result="onResult(event)">
    </mx:HTTPService>
    I was thinking I should have the code detect if its running
    locally or remotely and then select the appropriate variables for
    remote or local operation. I would appreciate some feedback on the
    best way to make this work.
    BTW, I don't like conditional compiles to solve this.
    Brad Carvey

    Hello,
    I am not shure, but I think you have to use a webserver, with
    a folder directing to your desktop. Then you can use something like
    that:
    http://localhost/Desktop.
    Otherwise you can try file:///C://Documents and
    Settings/[username]/Desktop/flex/...xml
    I hope this will help

  • Insert control text property inside httpservice url

    I am trying to insert a DateField.text property inside of the
    url field for HTTPService in the script portion. I have
    successfully tested with setting the url field with a location and
    calling the .send() for results with a button. How do I base the
    url off of a variable? Here is my code I am using to call the
    HTTPService and this works if I set the full line.
    public function changeDate():void {
    srv.url = "
    http://mydomain.com/temp/2008-03-21.xml";
    srv.send();
    I am trying to pull the text property from a DateField with
    an id of dF. This fails though.What do I need to correct?
    public function changeDate():void {
    srv.url = "'
    http://mydomain.com/temp/' +
    {dF.text} + '.xml'";
    srv.send();

    Ok, thank you for the help. I got it working!
    Here was the final function.
    public function changeDate():void {
    srv.url = "
    http://mydomain.com/temp/" +
    dF.text + ".xml";
    srv.send();
    }

  • Using a Variable in HttpService url attribute

    I have a dynamic url defined below
    public var forecastURL:String = "
    http://www.weather.gov/forecasts/xml/SOAP_server/ndfdSOAPclientByDay.php?lat="
    + latitude + "&lon=" + longitude +
    "&format=12+hourly&startDate=" + todaysDate +
    "&numDays=" + numberDays + ""
    I would like to use the var without the {} bind. The compiler
    complains if the url is not surrounded in quotes. This should be
    simple? How can I use a var within the url attribute without the
    bind brackets?
    <mx:HTTPService
    id="forecastRequest"
    url = "{forecastURL}" result="resultHandler(event)"
    />

    Not Possible..why don't you use the subtitle box instead of help url?

  • LoadMovie without having to use full path/URL

    I've always used loadMovie to call external swf files from a
    main/menu swf file, but it seems that some new security settings
    and restrictions, I'm not able to do this anymore - at least not
    online. All my swf files are in the same directory, and when I play
    the swf locally, it loads all the external swfs without a problem.
    I tried changing the path to my swf in the loadMovie command
    to the pull path on the server, and this worked. The problem is, I
    have to hand off my website to another company, and it will go
    through many rounds of testing (and servers) before eventually
    going online. Is there any way to avoid having to use the full
    path/domain in the loadMovie command for a situation like this
    where the domain/path will change?
    I have this in the Flash embed tag:
    <PARAM NAME="allowScriptAccess" VALUE="sameDomain" />
    I have this as my loadMovie command:
    loadMovie ("flashfile.swf", 1);
    But it only works when I have it like this, which is a
    problem because the URL will change many times before launch.
    loadMovie ("
    http://www.website/media/flashfile.swf",
    1);
    Any help would be appreciated!

    Yes, I've done this all the time too, and never had this
    problem, which is why I'm stumped.
    I've changed my code to this, with module_proxy being an
    empty movie clip. This works. But when I take out the URL and path,
    even though the swf files are in the same directory, it's doesn't
    play.
    loadMovie ("
    http://www.website/media/01_Mixie_Pixie_Telegram_Service.swf",
    "module_proxy");
    _parent.gotoAndPlay("dim_menu");
    //openCountdownFile();
    stop();
    Then, I tried to create a varible for the URL/domain, so I
    can change it out more easily (although when I hand this off, I
    won't be able to do that):
    var domainPath = "
    http://www.website/media/"
    function (openCountdownFile){
    var linkToSWF = domainPath + eval(PgFile[item_chosen]);
    loadMovie (linkToSWF, "module_proxy");
    parent.gotoAndPlay("dim_menu");
    var swfPageLabel = item_chosen.toString();
    gotoAndPlay(swfPageLabel);
    This doesn't seem to work either. So, if swf files SHOULD be
    able to communicate using loadMovie, why am I having this problem?
    Thanks.

  • Best practice to configure HTTPService url

    I try to find the best way to set up the url attribute of a
    large number of httpService in an application that use different
    servlet as data provider.
    My idea is to read an external XML file and use the text of
    nodes to find the settings for the url attribute.
    For example:
    External file config.xml contains a node like this
    <service1>
    http://achille:8080/dbfw/DBSERVICE</service1>
    In my <mx:Application> on creationComplete I read the
    config.xml file and put the content in a Bindable variable that I
    will refer in every component of my application by the syntax
    XML(parentApplication.config).service1 and use the text value of
    the node to set the url attribut of an httpService.
    This is very important because when I install the application
    at a customer the service1 url change and I have to set up the
    application data provider through the external XML file.
    Is there an esier way to do obtain a behavior like that ?
    Thank you at all

    Hi Louis,
    you need to setup a service with clusterware. On both sides: primary and standby.
    On primary you start them. On standby the services are also configured but stopped.
    In case of switchover or failover, data guard will notice clusterware to bring them up.
    You need to use this service name in your clients tnsnames.
    Another issue are TCP timeouts, to protect against them you use
    outbount_connect_timeout in your sqlnet.ora
    Also have a look at
    http://www.oracle.com/technology/deploy/availability/pdf/MAA_WP_10gR2_SwitchoverFailoverBestPractices.pdf
    HTH Mathias

Maybe you are looking for

  • My old computer died, and not all of my music is moving back to itunes

    First I saved all my music on the old computer into a file on my external hard drive. I knew it was nearing it's death. When I went to move it to my new laptop today, it only picked up the purchased items. I had so many songs on there!!!! How do I ge

  • New IMAC slowing down with spinning ball

    I've had my MAC for about 3 weeks (I switched from a PC). Today it started slowing down. First whe n I tried to print something and then when I was in Excel (Office for MAC 2004). Both times it didn't do anything for a minute and then the clorful spi

  • Suggestions for keeping app from shutting down in background?

    I'm almost done a messaging app for android that's using p2p cirrus to transfer messages. It works great and i'm really happy being able to use this service on an air for android application. If the phone is asleep, using another application, or anyt

  • How to set RMAN Backup destinaion

    I am configuring RMAN and do following steps Install 11gr2 software and create database Create rman user, tablespace and repository Register my two DB's on two different servers Then i run following script, after logging into one of DB as target (rma

  • Sound problem in HP Pavillion dv9810us Notebook PC

    Hi : For last more than 8 months I am having this problem.  First  problem started with skype call.  My laptop lost its speaker and showed a red X mark next to sound icon.  I couldn't find any thing to fix the problem, so I did system recovery to fac