HTTP Request Headers

Is it possible to use form data passed from a form outside of
a Flex application? For example, there's a simple HTML form that a
user fills out and then submits which points to a Flex application.
Is it possible to access the data sent via a POST or GET? Here's a
simple HTML form example to help illustrate my question:
<!-- this is the HTML form calling the Flex application
'index.html' -->
<form name="Foo" method="POST" action="index.html">
</form>

I don't think so. That example assumes you want to embed an
HTML page inside Flex. I'm trying to access data sent to a Flex
application through a form submission. In the example I posted, the
form would POST the field data to the Flex application
(index.html). I had hoped there might be some sort of internal
function within AS that lets you access the field data passed to
the Flex application. Something like:
URI.getRequestHeader.fields

Similar Messages

  • Setting HTTP request headers

    Who can tell me how to set HTTP request headers,for example ,If-Modified-Since,i only know how to get If-Modified-Since in servlet and use it.

    Hy,
    Headers are provided by the Browser you use. He controls the Content of it, eg. the accepted File types, the Browser name and type, HTTP Version used, ...
    You can, however, add your custom Headers with the addHeader Methods in HttpServletResponse. Then, you can read them out on the Client, eg.
    using Jsp, and react on the Client based on the given values.
    Best regards
    jherunter

  • Allow-http-request-headers-from    Question

    I have a crossdomain.xml file in place, but am still getting this error:
    "Security error accessing url"
    I searched the web and is it true that because I am accessing a SOAP web service I need to add this to the crosssdomain.xml file:
    <allow-http-request-headers-from domain="MYDOMAINHERE" headers="SOAPAction"/>
    Is there anything else from a crossdomain.xml file perspective, or anything else in general to be able to access these web services from my Flex app?
    Thanks for your responses.

    The SWF is at MyDomain.com (for example).
    The crossdomain.xml file is on the 3rd party web service provider at the root of their web server, and it correctly has an entry to MyDomain.com.
    The exact error is "Security error accessing url".
    I read on the web that when accessing SOAP web services you need to add these entries to the crossdomain.xml file:
    <allow-http-request-headers-from domain="MyDomain.com" headers="SOAPAction"/>
    Is that the case and is there anything else extra I need to do to get web services to work in this case?
    Thanks Alex, for helping with this.

  • Help needed about HTTP Request Headers

    HI All,
    Regarding HTTP RFC 1945 I have to use headers request-line and message is there any functionality in Servlets or JSP to access both them. I used &#8220;request.getHeaderNames()&#8221;, which return the headers &#8220;ACCEPT,ACCEPT-ENCODING ,ACCEPT-LANGUAGE ,CACHE-CONTROL ,CONNECTION ,CONTENT-LENGTH ,CONTENT-TYPE ,COOKIE ,HOST ,REFERER ,USER-AGENT&#8221; but not request-line and message.
    Kindly provide the help to access them.
    Regards,
    Kashif Bashir
    AdamSoft Intl
    Lahore, Pakistan

    I had a look at RFC 1945. It gives an example of what it calls a Request-Line:GET http://www.w3.org/pub/WWW/TheProject.html HTTP/1.0But as far as I can see it doesn't describe this anywhere as being a header. So it doesn't surprise me that getHeaderNames() doesn't return it.
    I'm also surprised you're even trying to access this low-level information with a high-level tool like a servlet. You could probably reconstruct it with various servlet methods, though. You know the method (e.g. "GET") and you can find out the URL from various methods of the HttpServletRequest.

  • Adding custom headers to a HTTP Request

    Folks,
    I'm wondering if it is possible to add custom headers to a HttpRquest. In other words is it possible add new headers to the HttpServletRequest. We have addHeader methods for Respones but not Requests. Servlet Filters dont seem to let u do it too.
    I saw that the deprecated HttpRequestWrapper (catalina.jar) has addHeader methods, but I get casting issues. Is there any proper way to accomplish this ?
    Thanks a bunch for your time n help folks..

    Unfortunately I would need to add the information as a HTTP Request HEADER and not as a request attributte. I would need something like request.addHeader(obj1,Obj2), which is not available.

  • I am getting an error Bad Request Request too long HTTP Error 400. The size of the request headers is too long.

    When I sign into Methodintegration.com my data base I can get in ok. When I sign out I get the following error: I am getting an error Bad Request Request too long HTTP Error 400. The size of the request headers is too long. If I close Fire Fox and go back in it will work one time and then I get the same error message.

    That is usually a problem with corrupted cookies.
    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • If I access the website of Cebu Pacific I get as reply upon entering a search request "HTTP Error 400. The size of the request headers is too long.", but if i use private browsing i do not get this reply. How do i resolve that?

    If I access the website of Cebu Pacific Air I get as reply upon entering a search request "HTTP Error 400. The size of the request headers is too long.", but if i use private browsing i do not get this reply. This refers to Firefox 5.0 on ubuntu 11.04
    I have tried to resolve this through deleting history and the cookies, but i always get the same reply. Although if i use firefox (ubuntu) private browsing or Firefox on Windows 7 i do not get this error message.
    What causes this error and how do i resolve this?

    Copied from the link mentioned below.
    ''That is usually a problem with corrupted cookies. Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies" ''
    https://support.mozilla.com/en-US/questions/785186?s=http+error+400&as=s
    Check and tell if its working.

  • How do I add my own headers to the default set of request headers without using a plug-in?

    When I open HTTP Live Headers, I see that there are default request headers that go out from the browser to the server. I want to add a Pragma header with a specific value to be sent. This will help me to remove a plug-in from my arsenal and thereby be sure that all the request headers are going as a part of the request.

    I think this probably requires an extension. As far as I know, there is no preference you could change in about:config or user.js to "add a header".
    Or are you generating the request with JavaScript?

  • A new socket for every http-request?

    Do I have to make a new socket for every http-request? The code below doesn't work because it is two requests in a row. The first GET works, but the second doesn't. I thought that the purpose of a socket is that you set it up once and then you should be able to do arbitrary communication between the two peers. Maybe that is just the case with sockets only but not if you use sockets to perform http.
    Thank you for your answers! Nice greetings from Austria (not Australia)!
    Stefan :)
    package httptest;
    import javax.net.ssl.*;
    import java.io.*;
    import java.net.*;
    public class Conn2 {
        private PrintWriter out;
        private BufferedReader in;
        private Socket socket;
        public Conn2()
            try {
             socket = new Socket("www.google.at", 80);
             out = new PrintWriter(new BufferedWriter(new OutputStreamWriter(socket.getOutputStream())));         
             if (out.checkError())
              System.out.println("SSLSocketClient:  java.io.PrintWriter error");
             in = new BufferedReader(new InputStreamReader(socket.getInputStream()));
                System.out.println("Connect erfolgreich.");
         } catch (Exception e) {
             System.err.println(e);
        public void test()
            String inputLine;
            // 1. GET
            out.println("GET / HTTP/1.0");
         out.println();
         out.flush();
         try
                while ((inputLine = in.readLine()) != null)
                    System.out.println(inputLine);
            catch(IOException e)
                System.err.println(e);
            // 2. GET
            out.println("GET / HTTP/1.0");
         out.println();
         out.flush();
            try
                while ((inputLine = in.readLine()) != null)
                    System.out.println(inputLine);
            catch(IOException e)
                System.err.println(e);
    }

    Normally in the HTTP protocol, the server will close the connection after every request. So after you do the first GET, the server sends you the result and closes the connection. You have to open a new connection for the second GET.
    You can set specific headers to keep the connection open, which makes things faster if you have to do multiple GET's quickly after another. Lookup the specification of the HTTP protocol on http://www.ietf.org/
    Maybe it's easier to use a HTTP client library like Apache's HTTPClient: http://jakarta.apache.org/commons/httpclient/ so that you don't have to implement all the difficulties of the HTTP protocol yourself.

  • Scorm-based test causes too many Blackboard http requests

    We are looking into a problem with scorm-based tests and learning  modules created in Adobe Captivate. Viewing the scorm content in our Blackboard LMS generates ridiculous amounts of network traffic. A simple click in the scorm module triggers  anything between 10 and 100+ http-requests, even if no interaction with  the server is required. The same click sometimes results in 5 requests, other times in 50  requests or more.It's always a sequence of the same two requests, see below (only the max value in "Keep-Alive: timeout=10, max=98" counts down).
    If these scorm modules are taken by a group of students, the enormous amount of http requests put a lot of pressure on our Blackboard system, which results in a slow behaviour of the modules. Has anyone seen this behaviour and does anyone know of a way to prevent it?
    (below, part of the http headers collected with the Firefox Live HTTP Headers Add-on)
    https://...cc.kuleuven.be/courses/1/a-C112956-K/content/_7409447_1/SCORM_support/scorm_sup port.swf?invokeMethod=methodToExecute&lc_name=lc_name&param=tempVar|true
    GET /courses/1/a-C112956-K/content/_7409447_1/SCORM_support/scorm_support.swf?invokeMethod=me thodToExecute&lc_name=lc_name&param=tempVar|true HTTP/1.1    
    Host: ...cc.kuleuven.be    
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US;     rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12    
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8    
    Accept-Language: en-us,en;q=0.5     Accept-Encoding: gzip,deflate    
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7    
    Keep-Alive: 115    
    Connection: keep-alive    
    Referer: https://...cc.kuleuven.be/courses/1/a-C112956-K/content/_7409447_1/ABT%20Excel%20Toets4.ht m    
    Cookie: JSESSIONID=2FFDF51EB1DFD4B73B539C63607A9177.root;     __utma=137656618.1128290341.1286972380....
    If-Modified-Since: Mon, 06 Dec 2010 17:40:03 GMT
    If-None-Match: W/"149-1291657203000"
    HTTP/1.1 304 Not Modified
    Date: Fri, 10 Dec 2010 09:00:13 GMT    
    Server: Apache/1.3.41 (Unix) mod_ssl/2.8.31 OpenSSL/0.9.8i mod_jk/1.2.27    
    X-Blackboard-appserver: ...cc.kuleuven.be    
    X-Blackboard-product: Blackboard Learn&#8482; 9.0.505.0    
    Set-Cookie: session_id=80EA2381B7970776B9C3202ADBDEC94E; Path=/    
    Set-Cookie: s_session_id=FB7D2433E54EFA941E49E6C79B536CDA; Path=/;     Secure    
    Etag: W/"149-1291657203000"    
    Content-Length: 0    
    Keep-Alive: timeout=10, max=100   
    Connection: Keep-Alive    
    Content-Type: text/plain; charset=iso-8859-1
    https://../courses/1/a-C112956-K/content/_7409447_1/SCORM_support/scorm_support.swf?invoke Method=methodToExecute&lc_name=lc_name&param=tempVar|true    
    GET /courses/1/a-C112956-K/content/_7409447_1/SCORM_support/scorm_support.swf?invokeMethod=me thodToExecute&lc_name=lc_name&param=tempVar|trueHTTP/1.1    
    Host: ...kuleuven.be    
    User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US;     rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12    
    Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8    
    Accept-Language: en-us,en;q=0.5    
    Accept-Encoding: gzip,deflate    
    Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7    
    Keep-Alive: 115    
    Connection: keep-alive    
    Referer:     https://../courses/1/a-C112956-K/content/_7409447_1/ABT%20Excel%20Toets4.htm    
    Cookie: JSESSIONID=2FFDF51EB1DFD4B73B539C63607A9177.root;     __utma=137656618.1128290341.1286972380...
    If-Modified-Since: Mon, 06 Dec 2010 17:40:03 GMT    
    If-None-Match: W/"149-1291657203000"   
    HTTP/1.1 304 Not Modified    
    Date: Fri, 10 Dec 2010 09:00:13 GMT    
    Server: Apache/1.3.41 (Unix) mod_ssl/2.8.31 OpenSSL/0.9.8i mod_jk/1.2.27    
    X-Blackboard-appserver: ...cc.kuleuven.be    
    X-Blackboard-product: Blackboard Learn&#8482; 9.0.505.0    
    Set-Cookie: session_id=80EA2381B7970776B9C3202ADBDEC94E; Path=/    
    Set-Cookie: s_session_id=FB7D2433E54EFA941E49E6C79B536CDA; Path=/; Secure    
    Etag: W/"149-1291657203000"    
    Content-Length: 0    
    Keep-Alive: timeout=10, max=98    
    Connection: Keep-Alive    
    Content-Type: text/plain; charset=iso-8859-1

    Simply add the call to your exception hander. E.g.
    EXCEPTION
             WHEN OTHERS
             THEN
                   UTL_TCP.Close_All_Connections;
                   INSERT INTO excep_trans (P_WORD_EXP, UPDATE_TIME, COUNTER)
                     VALUES (VC1.RAW_VAL_TXT, SYSDATE, cnt);
    ..etc..
    END;Also consider using proper coding standards. There is NO modern day programming language standard that says to write (selective) reserved words in uppercase. Write in lowercase. Use camelcase and pascalcase for variable names and procedures/functions/methods. Restrict the use of uppercase to defining identifiers such as compiler macros or constants.
    Do yourself a favour and read, understand and apply the basic naming standards as detailed in .Net Guidelines for Names and Code Conventions for the Java Programming Language.

  • Plugin login appears after initial weblogic everytime applet makes http request

    When I visit a page I get the initial login to the page via the realm followed
    by a java plugin loging (shown in attached pictures) every time the applet makes
    an http request. This stops the applet working, any idea how I can solve this?
    [pictures.doc]

    Any idea how to do thisn not really sure what you mean. I already inclued the session
    Id in the URL. Code we use to open connection is
    URL url = new URL(serverProtocol + "://" + serverName + ":" + serverPort + "/"
    + servlet + ((sessionId==null)?"":"?sessionid=" + sessionId));
    URLConnection uc = url.openConnection();
    uc.setDoOutput(true);
    uc.setDoInput(true);
    uc.setUseCaches(false);
    uc.setRequestProperty("Content-type", "java-internal/" + object.getClass().getName());
    Robert Patrick <[email protected]> wrote:
    If you are making HTTP requests from within an applet, you will need
    to provide the
    right HTTP headers to correctly identify that each subsequent request
    is from the
    previously logged-in user (e.g., the cookie that contains the WLS session
    ID
    attached to the response from logging in).
    andrea bates wrote:
    When I visit a page I get the initial login to the page via the realmfollowed
    by a java plugin loging (shown in attached pictures) every time theapplet makes
    an http request. This stops the applet working, any idea how I cansolve this?
    Name: pictures.doc
    pictures.doc Type: WINWORD File (application/msword)
    Encoding: base64

  • Persistent HTTP Requests in BSP: Can you Flush the Response without Ending It?

    Hello all,
    I have been looking for a way to implement a persistent HTTP Request in a BSP.  This means the server keeps the request open as long as possible and sends data periodically to the browser without closing the request.  In other development environments, there would be a way to flush the response to the client, separate from closing the connection, thus making this possible.  I have looked and do not see any way to do this.
    Also, if it is not possible with a BSP, is there another way to do this via the Web Application Server?
    Thanks for any help,
    -Chris

    There are various limits: the number of sockets / file descriptors that the operating system lets a program have open, the amount of socket buffer space in the operating system, the number of simultaneous connections that the web server allows. Each of these can be configured.
    One problem is that a web server starts a thread for each hit. If you have 1000 simultaneous active hits you have 1000 threads. That is quite a lot. I've seen server OSes start buckling at around 400-500 threads. Given a suitable OS you may get higher with a bit of configuration, but I'd say the number of threads is rather a big concern. 100,000 threads? That dog don't hunt.
    An alternative would be not to use a regular web server, but to use a NIO select -based server. Then you can have one thread that handles all the connections. I once did that to write a stock ticker applet. But if you want to do fully standards compliant HTTP implementation that's not trivial.
    If you are writing the client applet as well as the server, consider using a simpler protocol than HTTP and writing a NIO server. NIO isn't quite trivial to get really right; look at examples and tutorials; google is your friend. If you can keep each client's connection open do so; establishing and tearing down hundreds or thousands of connections a second, and sending HTTP request and reply headers, is going to eat network and CPU resources.
    If you are really targeting 100,000 clients at 5 seconds between messages, that comes to 20,000 messages per second. That's a lot; plan for a load balanced server cluster.

  • Http requests and modules

    recently, all the rage for fast websites is about lowering the numbers of http requests. I'm sure you're aware of that.
    I was wondering: each module creates in fact an http request, right?
    I'm using quite a few modules, especially web contents (for footer, header, navigation…) with the idea of making my site very "modular".
    Would that be then a case of wrong tools implementation?

    Liam is right. If you were running, say, Wordpress on a shared server then it might matter when you could actually get at the php code and mess around with headers and static caching and such, but I think you're attempting to overoptimize in this case, just using BC makes that mostly not your problem.
       IRT = in regards to.
    Old versions of IE are notorious for their lack of support for certain css/js features, bugginess (the z-index bug for instance) and needing ugly workarounds and hacks just to get them to support or pretend to support or not die horribly in the presence of modern standards-compliant code.
    IE6 in particular is important because it's very buggy AND prevalent in enterprise environments, where for various reasons, upgrading to a new browser is all but impossible (which means if you're building a site meant to be viewed by businesses, IE6 support is expontentially more important than if, say, you're putting up a blog and don't really care.) Although most modern frameworks like Boostrap and Skeleton, and js syntactic libraries like jQuery, are built with this in mind and abstract the issue away by including those hacks themselves, sooner or later you'll run into some kind of code that works brilliantly in every single browser you try... except the old versions of Internet Explorer (and then you end up looking around Stackoverflow for an hour or two looking for the fix.) 
    Currently various sites and even Microsoft are trying to phase out support for IE6. I personally think if you're using IE6 you should just be willing to deal with broken websites in the same way that if I drive a Ford Model-T onto the highway I should soon expect to  have a broken car. But understandably, sites that might lose money not supporting IE6 have to deal with it.

  • Httpservice.send() resulting in two http requests

    hi,
    I am using HTTPService() to send some xml data inside an HTTP
    POST request. But very often, i do
    see this resulting in two local ports being opened and the
    http request being sent out twice, once from each port.
    is this possible in some race condition?
    thanks,
    Sunil

    some snippets of my code:
    //build the http request
    var request:HTTPService = new HTTPService();
    request.method = "post";
    request.headers = headers[request.method];
    request.url = httpServer;
    request.resultFormat = HTTPService.RESULT_FORMAT_TEXT;
    request.contentType = "text/xml";
    request.addEventListener(InvokeEvent.INVOKE , httpInvoke,
    false);
    i do see the invoke callback only being called once. That
    makes me guess that from the application code, httpservice.send()
    is called only once.
    any help will be great.

  • Accessing a .exe file with HTTP Request

    Hi!
    Can I access an executable file located in a WEB page with JMeter?
    I'm tryng to use a HTTP Request:
    Server Name or IP: 111.111.111.1
    Port Number: 8080
    Path: /cliente/file.exe
    The file is in a Tomcat application.
    When I run, in the View Results Tree - Sampler Result, it shows:
    Load time: 63
    HTTP response code: 400
    HTTP response message: Bad Request
    HTTP response headers:
    HTTP/1.1 400 Bad Request
    Date: Wed, 27 Apr 2005 14:26:09 GMT
    Server: Apache-Coyote/1.1
    Connection: close
    I already had copied the link and placed it into the browser to verify
    if it was correct and i had access to the file normaly.
    What am I doing wrong?
    Thanks in advance.
    Marcelo.

    If the .exe file is publically-accessible from your web server (like other normal .html files are for example), then accessing that resource would be done the same way as accessing others (get a stream of bytes that the server would serve up, and do something with those bytes on the client end of the connection). I don't know what JMeter has to do with that.

Maybe you are looking for

  • Help! Mac OS 9.2.1 wont install!

    So I have been trying for about 3 almost 4 weeks now to install Mac OS 9.2.1 on my Power Macintosh 5200/75LC. So when I boot up and hold C down it gives me a message that says "Sorry, a system error occurred. error type 1010". So now I have another p

  • Buffer overrun in IE and Firefox

    Can't see any mov in browser from trailers.apple.com (or other web sites). Received error buffer overrun. I've reinstalled QT 7.2, 7.1 the same. Do you have any ideas?

  • Problem connecting SAP IS-U (ECC 6.0) with Business Objects Edge 3.1

    Dear all, I'm trying to connect to a SAP ECC 6.0 System (SAP IS-U) with Business Objects 3.1 (for example with Crystal Reports). I have installed the SAP RFC SDK on the ECC server and have imported these transport files: Open SQL reporting objects In

  • Sound card proble

    Hey, I just registered here and was wondering if someone could help me out. See, I have a a microphone set up on my comp, that used to work until I had to completely wipe my hardri've :-( **bleep** viruses. I was wondering if my microphone doesn't wo

  • Invalid combinations of joins involving outer joins

    Hi all, I have the following problem Scenario: I created 6 custom folders: Tasks (with measures) Type Criticity Status Owners Assignees The first folder is used to retrieve how many tasks (COUNT(tasks)) have a particular type or status or a combinati