NavigateToURL where URLRequest method = POST always defaults to GET

Hi there
I'm trying to invoke a PHP URL using the HTTP POST method combined with parameters to pass to a form. The test app is an AIR application as per the code below. Whilst the default browser is launched with the URL specified, my issue is that the method used at runtime is always HTTP GET not POST. I'm not sure what I'm doing wrong. I'd be really grateful if somebody could review and point out my mistake!
Many thanks
Ed
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import flash.net.navigateToURL;
  private function newWin(url:String):void {
                var urlRequest:URLRequest = new URLRequest(url);
var variables:URLVariables = new URLVariables();
    var rhArray:Array = new Array(new URLRequestHeader("Content-Type", "text/html"));
urlRequest.requestHeaders = rhArray;
            variables.username = "admin";
            variables.password = "admin";
            variables.domain   = "Default";
            urlRequest.data = variables;               
urlRequest.method = "POST";
                navigateToURL(urlRequest);
private function buttonclick() : void
this.newWin("http://10.0.5.176/contactq/index.php");
]]>
</mx:Script>
<mx:Canvas id = "myCanvas" height="400" width="400">
<mx:Button id="myButton" click="buttonclick();" x="169" y="166" width="91" label="Invoke URL"/>
</mx:Canvas>
</mx:WindowedApplication>

Firefox stores certificates that a server sends automatically in cert8.db for easier access, but that can also cause conflict if servers sends a certificate that is already stored.

Similar Messages

  • Windows CS6 "save as" action always defaults to last save place instead of saving where action is intended to. Please help

    Hi all,
    I am using CS6 64bit on a Windows 7 Enterprise machine at work. I have used Macs here for years and never had this problem but when I create an action that is designed to "save as" (because I must change the file name) a single file into a specific directory on the network Photoshop always defaults to saving into the last place I saved instead of saving into the place where the action tells it to save to. The action contains 2 saves and then a close and only the first save brings up the dialogue so we can change the name of the file. That dialogue box always contains the last save location instead of the desired location the action is intended to save to. The second save always goes to the correct place and the close works fine.
    The only time this does not happen is when Photoshop is first launched. In that case when I click the action it always tries to save into the original folder on the network where I opened the file from.
    I have already unchecked the box in preferences for "save as to original folder" and do not know what else to try.
    Previously on Macs I have never experienced this issue at all. I have been opening files on my network and saving them to other network directories for years over many different versions of Photoshop on a Mac and not once have I had an issue. Is it a PC thing? Is there something else I can try? I need to deploy these PC's to employees and can not do so unless this action works as we process high volumes of images and do not have the time to navigate manually to each directory we must save in.

    Welcome to the club! I hate that but live with it.
    When I download from the camera, Photoshop Bridge generates a folder according to the date shot, say 20141212. The images then are 20141212_1 to 20141212_xxx; whatever the final count is from the download. But let's say I rename the image or perhaps have a Photomerge of several frames. Then the connection is lost and Photoshop reverts to the last folder before the current one. So one has to watch to steer that "Save As" to the one you want, in this case 20141212. However, after that occurs, subsequent Saves will go to folder, 20141212. (because it is now the last one)
    The principle I follow is that if the folder with the images is new, I am careful with "Save As" if the file I am saving is not directly connected with that folder"s numbering system.

  • Send html mail with navigateToURL(new URLRequest('mailto:

    hi!
    do you think its possible, to send html text to the email client of the mobile device?
    i tried different ways, but without success.
    Way 1
    navigateToURL(new URLRequest('mailto:[email protected]'+'?subject=Subject'+'&body= <html><body>Hello world<br><img src="http://www.republicofcode.com/wp-content/uploads/2012/04/Pins2_300_250.png"></body></html>'));
    Way 2
    var hdr:URLRequestHeader = new URLRequestHeader("Content-type", "text/html");
    var request:URLRequest = new URLRequest('mailto:[email protected]?subject=Subject&body=<html><body>Hello world<br><img src="http://www.republicofcode.com/wp-content/uploads/2012/04/Pins2_300_250.png"></body></html>');
    request.requestHeaders.push(hdr);
    navigateToURL(request);
    Maybe i need another content type than text/html?
    In the reference i've read, that the default one is: application/x-www-form-urlencoded
    http://help.adobe.com/de_DE/FlashPlatform/reference/actionscript/3/flash/net/URLRequest.ht ml#contentType
    Any ideas?

    you could try:
    function submitPoll(e:MouseEvent):void {
      //sending the email stuff
      var request:URLRequest = new URLRequest("mailto:[email protected]"+"?subject=Subject"+"&body= Hello world ");
      navigateToURL(request, "_blank");
      request.method = URLRequestMethod.POST;

  • ERROR RENDERING PDF IN SERVLET WITH FORM method="post"

    Hello,
    we are trying to render a dinamic PDF document in a servlet building with XSL:FO apache or itext.
    The problem ocurs when we sending a Form data with method post, the output of the servlet is a blank page instead of the pdf document. Also if we send the form data with method "get" we can view the pdf document corretly.
    But we need to send amount information, and can?t use method get.
    Thank

    You can always use GET to send information by generating a dynamic URL in the query string (after the '?'). Granted, you don't want to send file data that way, but it will work for small numbers of arguments where privacy is not a concern.
    As to why you see the PDF in one instance and not another, I'm not sure. There is no difference from an HTTP standpoint. You sent a request, you are getting a response. The browser should treat the response the same, regardless of GET vs POST.
    Are you setting the content-type to application/pdf? Are you doing something fishy with Javascript? Do you have conditional logic in your code that fires on a POST but not on a GET that actually has a bug in it (since GET works but it was designed for POST)?
    - Saish
    "My karma ran over your dogma." - Anon

  • Defining container for BO FIPP method POST

    Hi Experts,
    New to workflow, we are creating a program that instantiate BO FIPP method POST, how to create container for this fields?
    object-key-documentno. object-key-sourcecompanycode. object-key-fiscalyear.
    We will populate this from parameters.
    Thanks!

    Hi John
    I am not sure if I got your requirement clearly, but if you are trying to call the processing of POST method of FIPP via a stand alone ABAP code, you can use the following:
    Call FM SWO_CREATE where objtype = 'FIPP' and objkey = concatenated string of Doc No, Source Company Code and Fiscal year (including spaces and/or leading zeros ... iam assuming that you have this key in your ABAP program)
    You will get the FIPP object Reference in parameter "object"
    Now using this reference, call FM SWO_INVOKE  where Access = 'C' (that is, call a method......if you need to read an attribute, you can make this as 'G'), Object = the object reference from above call to SWO_CREATE and VERB = 'POST' (if left blank, the default method of the BO is called for access 'C' and for access 'G', the default attribute is returned if no value is given). Pass any method data in "container".
    Hope this is what you were looking for....if not... please elaborate on your requirement.
    Regards,
    Modak

  • Timeframe always defaults to '3' even when other value on screen variant

    Hi there
    I have created a screen variant and transaction variant for transaction BBPSC04 to change the "Timeframe" (GS_SEARCH_FIELD-SELECTION_DATE) field value to '4' and the "Including Completed Shopping Carts" (GS_SEARCH_FIELD-WITH_CLOSED) field value to 'X' using transaction SHD0. On tcode SHD0 the 'Content' field indicates the new values and the 'W. content' field is selected for the fields with new values.
    When I execute the transaction all the new variant values are indicated except the "Timeframe"-field. This field always defaults to '3' no matter what value you indicate in the variant.
    I see some hardcode in the func grp BBP_PDH_SEARCH where this field is defaulted to value '3'.
    It seems like a SAP program error. Anyone familiar with this?
    Thanks
    Frederik

    Hi
    Which SRM version are you using ?
    It seems to be a bug in the system. Please raise a customer OSS message with SAP on this.
    Do keep me posted.
    Regards
    - Atul

  • 11gR2 error: call a bounded task flow with method call as default activity

    hi all,
    We migrated several applications to the JDev 11g R2.
    There are 2 applications that contain a bounded task flow where we define Method Call as default activity.
    We need invoke specific actions before opening the page.
    They run well with 11gR1.
    But with *11G R2*, I can’t call directly this task flow with the following URL:
    http://127.0.0.1:7101/MyAPP/faces/adf.task-flow?adf.tfId=my-flow-def&adf.tfDoc=/WEB-INF/flows/my-flow-def.xml
    Message:
    *<SecurityUtils><invokeURLAllowed> ADFc : impossible to call directly the task flow '/WEB-INF/flows/ my-flow-def.xml #my-flow-def' with the help of URL*
    (original message: <SecurityUtils><invokeURLAllowed> ADFc : impossible d'appeler directement le flux de tâches '/WEB-INF/flows/ my-flow-def.xml #my-flow-def' à l'aide de l'URL.)
    Any idea?
    Thanks for you help

    Hi,
    Have a look at the task flow properties, in PatchSet1, a new feature "invokeURLAllowed" is added that prevents bounded task flows from being URL accessible for security reasons. You can swithc this feature on and off
    Frank
    Ps.: I though that bounded task flows that you call from a URL generally needed to have a viewActivity as the default activity

  • Method POST or GET

    how to create a formular with 'POST' or 'GET' method

    You would set URLRequest.method property to either URLRequestMethod.POST or URLRequestMethod.GET
    Kenneth Kawamoto
    http://www.materiaprima.co.uk/

  • Method Post

    Hi to evrtybody, I'm new here.
    I have a problem with method post:
    I have a webapp that shows filter and report pages, I generate it with XHTML, through my Servlet.
    For example when I get back at previous page, from my report page; that one results expired; so I have to refresh it.
    I don't think that the problem consists in the set filter datas again, but probably in some browser configuration.
    I'm sure to find many answers and to improve my java knowledge.
    Thanks in advance.

    Usually, with content returned to the user's browser with the POST method, this occurs regularly. It would be asking too much to consider a scheme where the objects that you need information from (such as the objects used to create your dynamic XHTML stuff in the servlet) be available in a greater web application context, such as the user's session or even the application context. If, for example, you used Struts as your framework, you would be much better off.

  • Would like the currency in the vendor master to always default to USD.

    Would like the currency in the vendor master to always default to USD.

    Hi,
    Currency not available in the vendor master level.
    How you want to make default it, if it is not available.
    If you want to post particular vendor only with the USD currency, then go for Validation as currency check in header and vendor check in line item and this works only at company code level (that means, only for one company code, if you need it to other then seperate validation you have to write and activate).
    VVR

  • I have just changed to Firefox from IE. When i pull up my home page which is the BBC.co.uk I have always to reset my local region as it always defaults to London. I didn't have this problem with IE. Can you please supply a solution, thank you

    I have just changed to Firefox from IE. When i pull up my home page which is the BBC.co.uk I have always to reset my local region as it always defaults to London. I didn't have this problem with IE. Can you please supply a solution.

    I fixed it!!! Following advice from similar posts, I searched the hard drive for "sessionrestore.js" in my Firefox Profiles folder (you'll need to enable viewing of hidden files in Windows Explorer (Tools > Folder Options > View (then select Hidden files option) then Apply to all folders) to do this). I then shut down Firefox, deleted the file and restarted - my home page was correct and it didn't try to open my old session! Some other posts suggested deleting everything called "sessionrestore" in that folder, but I didn't need to.

  • NavigateToURL(new URLRequest) with mailTo tag

    Hello,
    I am using the following code to send an email message, which works in development.
    sendMe_mc.addEventListener(MouseEvent.CLICK,fl_ClickToGoToWebPage);
    function fl_ClickToGoToWebPage(event:MouseEvent):void
    navigateToURL(new URLRequest("mailTo:"+confirmTi.text+"?subject=Notes to self from HFHI Values in Action &body="+values_t.text+""), "_blank");
    It still works when loaded and launched from the swf embedded in a swf, but it also first tries to navigate to a new url by openign a new window/tab in IE7. Is there something better than the mailTo: tag to use?
    Also, I tried removing the targwt parameter, it does nto work without it being identified....
    thanks
    s

    you can user server-side code if you don't want to rely on the user having a default email program.  and you can use "_self" instead of "_blank" if you want to use the user's default email program but don't want to open another window.

  • Method POST no Allowed error. See my code, please.

    What happend here?.
    At submit the form I see the next error:
    Method Not Allowed
    The requested method POST is not allowed for the URL filesend.jsp.
    Thanks.
    **** filesend.jsp file ******
    <%
    if (request.getParameter("fichero")==null)
    %>
    <html>
    <head>
    <title>How send a file</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body bgcolor="#FFFFFF" text="#000000">
    <form name="form1" enctype="multipart/form-data" method="post" action="filesend.jsp">
    <input type="file" name="fichero">
    <input type="submit">
    </form>
    </body>
    </html>
    <%
    else
    // Here the code for load the data after post submit
    %>

    Your web server must be told that this kind of page (.jsp) can accept the POST method (default is GET only). It is not an error in the code. Talk to your server admin.

  • Why does firefox (updated) on windows 7 NOT send a hotllink (must copy/paste),when using the 'send link' feature,whereas firefox on XP always sends a hotlink?

    Question
    why does firefox (updated) on windows 7 NOT send a hotllink (must copy/paste),when using the 'send link' feature,whereas firefox on XP always sends a hotlink? This feature has always worked perfectly on all my windows XP computers,but not at all on any of my versions of firefox on windows 7.How can i fix this? Why does it not work?

    Hi,
    Please check if this happens in [https://support.mozilla.com/en-US/kb/Safe%20Mode Safe Mode]. You can also attach a screenshot on this page below '''Post a Reply''' > '''Add images: Browse ...'''

  • HTTP Status 405 - HTTP method POST is not supported by this URL

    dear all
    can u solve my problem.am getting the *"HTTP Status 405 - HTTP method POST is not supported by this URL"* msg from the browser when i press the search button in my form.plz suggest me the solution for my fault.these are the following html,xml,class files:
    search.html*
    <html>
    <head>
    <title>Search Page</title>
    </head>
    <body>
    <p align="center"><font size="6" color="#0000FF"><b>Search Module</b></font></p>
    <p align="center"> </p>
    <center>
    <form method="POST" action="./emp">
    <table border="1" width="43%">
    <tr>
    <td width="50%">
    <p align="right">Employee Name</td>
    <td width="50%"><input type="text" name="empname" size="36"></td>
    </tr>
    <tr>
    <td width="100%" colspan="2">
    <p align="center"><input type="submit" value="Search" name="B1"></td>
    </tr>
    </table>
    </form>
    </center>
    </body>
    </html>
    web.xml*
    <web-app>
    <servlet>
    <servlet-name>jdbc</servlet-name>
    <servlet-class>searchModule</servlet-class>
    <init-param>
    <param-name>driver</param-name>
    <param-value>sun.jdbc.odbc.JdbcOdbcDriver</param-value>
    </init-param>
    <init-param>
    <param-name>url</param-name>
    <param-value>jdbc:odbc:first</param-value>
    </init-param>
    <init-param>
    <param-name>user</param-name>
    <param-value>scott</param-value>
    </init-param>
    <init-param>
    <param-name>pass</param-name>
    <param-value>tiger</param-value>
    </init-param>
    </servlet>
    <servlet-mapping>
    <servlet-name>jdbc</servlet-name>
    <url-pattern>/emp</url-pattern>
    </servlet-mapping>
    <welcome-file-list>
    <welcome-file>search.html</welcome-file>
    </welcome-file-list>
    </web-app>
    SearchModule.java*
    import java.util.*;
    import java.io.*;
    import java.sql.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class searchModule extends HttpServlet
    Connection con;
    public void init() throws ServletException
    String d=getInitParameter("driver");
    String u=getInitParameter("url");
    String us=getInitParameter("user");
    String pwd=getInitParameter("pass");
    try
    Class.forName(d);
    con=DriverManager.getConnection(u,us,pwd);
    catch(ClassNotFoundException e)
    System.out.println(e);
    catch(SQLException e)
    System.out.println("Unable to establish the connection");
    }//init
    public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
    String empname=req.getParameter("empname");
    res.setContentType("text/html");
    PrintWriter pw=res.getWriter();
    try
    pw.println("<html><body><center>");
    Statement st=con.createStatement();
    String sql="select * from employee where empname="+empname;
    ResultSet rs=st.executeQuery(sql);
    if(rs.next())
    pw.println("<h2>Employee Details</h2>");
    pw.println("<table border=1>");
    pw.println("<tr><th>Employee No.</th>");
    pw.println("<th>Employee Name</th>");
    pw.println("<th>Designation</th>");
    pw.println("<th>Department</th>");
    pw.println("<th>Salary</th>");
    pw.println("</tr><tr>");
    pw.println("<td>"+rs.getInt(1)+"</td>");
    pw.println("<td>"+empname+"</td>");
    pw.println("<td>"+rs.getString(3)+"</td>");
    pw.println("<td>"+rs.getString(4)+"</td>");
    pw.println("<td>"+rs.getInt(5)+"</td>");
    pw.println("</tr></table>");
    else
    pw.println("<h2>Employee Record Not Found</h2>");
    pw.println("</center></body></html>");
    pw.close();
    rs.close();
    st.close();
    catch(SQLException e)
    System.out.println(e);
    }//doPost
    public void destroy()
    if(con!=null)
    try
    con.close();
    catch(Exception e)
    System.out.println("Connection Closed");
    }//destroy
    }//searchModule
    in control panel i selected System DNS and created the name as first and driver as Microsoft ODBC for Oracle
    plz suggest me the solution where i committed mistake.

    <form method="*POST*" action="./emp">
    public void doGet (HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException
    HTTP method POST is not supported by this URL

Maybe you are looking for