Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-24741

Missing POST request header when flex-app is placed in the iframe

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • mx: Application
    • None
    • Affected OS(s): Windows
      Affected OS(s): Windows
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      1 Create flex project 'apps'.

      apps.mxml code:

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Script>
      <![CDATA[
      private function doPost():void

      { //url example:'http://localhost:8080/appsprj/demoServlet' var url:String = "....."; var request:URLRequest =new URLRequest(encodeURI(url)); var variables:URLVariables=new URLVariables(); variables.parm="Adobe"; request.method=URLRequestMethod.POST; request.data=variables ; navigateToURL(request, "_blank"); }

      ]]
      >
      </mx:Script>
      <mx:Button x="100" y="200" label="Access Servlet By Post Method" click="doPost()"/>
      </mx:Application>

      2 Create new page 'index.html'.

      index.jsp code:

      <html lang="en">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
      </head>
      <iframe src="apps.html" width="100%" height="100%"/>
      </html>

      3 Deploy project and access page:

      (1) http://localhost:8080/appsprj/apps.html

      This is flex-app single. Successfully get parameter.
      Request header(See Image Attachments 1.jpg):

      POST /appsprj/demoServlet HTTP/1.1
      Accept: /
      Referer: http://localhost:8080/appsprj/apps.swf
      Content-Type: application/x-www-form-urlencoded
      ......

      (2) http://localhost:8080/appsprj/index.html

      The flex-app is placed in frameset. Faild to get parameter.
      Request header(lost Referer and Content-Type, See Image Attachments 2.jpg):

      POST /appsprj/demoServlet HTTP/1.1
      Accept: /
      ......

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: