How to send Parameters FORM to PHP WEB Page with method POST (secure)?

Hello everyone,
i hope someone can help me to find a solution to this problem!
i have to send "+precious+" parameters from an oracle form to php page, like username and password, with a secure method... i tried with WEB.SHOW_DOCUMENT procedure but it uses GET Method and when the web page open up you can read those parameters in the url...no good!
some suggestion?
Thank a lot in advance... FMicio

The other way you have is to make a PJC java bean ...
which uses HTTPClient library..
for example:
PostMethod post = new PostMethod("http://jakarata.apache.org/");
        NameValuePair[] data = {
          new NameValuePair("user", "joe"),
          new NameValuePair("password", "bloggs")
        post.setRequestBody(data);
        // execute method and handle any error responses.
        InputStream in = post.getResponseBodyAsStream();
        // handle response.I have done a multipart form data post to upload files to my db over httpClient.. and other things...
Or with java.net.* api-s
try {
    // Construct data
    String data = URLEncoder.encode("key1", "UTF-8") + "=" + URLEncoder.encode("value1", "UTF-8");
    data += "&" + URLEncoder.encode("key2", "UTF-8") + "=" + URLEncoder.encode("value2", "UTF-8");
    // Send data
    URL url = new URL("http://hostname:80/cgi");
    URLConnection conn = url.openConnection();
    conn.setDoOutput(true);
    OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
    wr.write(data);
    wr.flush();
    // Get the response
    BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    String line;
    while ((line = rd.readLine()) != null) {
        // Process line...
    wr.close();
    rd.close();
} catch (Exception e) {
}Or you can call your web page (post data) from your database
http://awads.net/wp/2005/11/30/http-post-from-inside-oracle/
Edited by: Peterv6i on Mar 30, 2012 3:49 PM
Edited by: Peterv6i on Mar 30, 2012 3:55 PM

Similar Messages

  • Best Practices Question: How to send error message to SSHR web page.

    Best Practices Question: How to send error message to SSHR web page from custom PL\SQL procedure called by SSHR workflow.
    For the Manager Self-Service application we’ve copied various workflows which were modified to meet business needs. Part of this exercise was creating custom PL\SQL Package Procedures that would gather details on the WF using them on custom notification sent by the WF.
    What I’m looking for is if/when the PL\SQL procedure errors, how does one send an failure message back and display it on the SS Page?
    Writing information into a log or table at the database level works for trouble-shooting, but we’re looking for something that will provide the end-user with an intelligent message that the workflow has failed.
    Thanks ahead of time for your responses.
    Rich

    We have implemented the same kind of requirement long back.
    We have defined our PL/SQL procedures with two OUT parameters
    1) Result Type (S:Success, E:Error)
    2) Result Message
    In the PL/SQL procedure we always use below construct when we want to raise any message
    hr_utility.set_message(APPL_NO, 'FND_MESSAGE_NAME');
    hr_utility.raise_error;
    In Exception block we write below( in successful case we just set the p_result_flag := 'S';)
    EXCEPTION
    WHEN APP_EXCEPTION.APPLICATION_EXCEPTION THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    WHEN OTHERS THEN
    p_result_flag := 'E';
    p_result_message := hr_utility.get_message;
    fnd_message.set_name('PER','FFU10_GENERAL_ORACLE_ERROR');
    fnd_message.set_token('2',substr(sqlerrm,1,200));
    fnd_msg_pub.add;
    p_result_message := fnd_msg_pub.get_detail;
    After executing the PL/SQL in java
    We have written some thing similar to
    orclStmt.execute();
    OAExceptionUtils.checkErrors (txn);
    String resultFlag = orclStmt.getString(provide the resultflag bind no);
    if ("E".equalsIgnoreCase(resultFlag)){
    String resultMessage = orclStmt.getString(provide the resultMessage bind no);
    orclStmt.close();
    throw new OAException(resultMessage, OAException.ERROR);
    It safely shows the message to the user with all the data in the page.
    We have been using this construct for a long time for all our projects. They are all working as expected.
    Regards,
    Peddi.

  • How to send an entire HTML, PHP dynamic page using phpmail()?

    How to send an entire HTML, PHP dynamic page using phpmail()
    from PHP website, similar to mail this page or send to a friend
    link?

    Hello,
    Please change the mail address
    "info[at]furkids[dot]co[dot]za" from this thread ^^^look above^^^
    to "[email protected]"
    Thank you

  • Unkown failure when submitting a form to PHP web page

    Hello.
    I've been having a following issue when using Adobe Reader X version 10.1.3.23 and the newest version.
    An error occurred during submit process. Unkown failure.
    This happens when the document is receiving data from web page.
    Following javascript is behind the submit button:
    this.submitForm({
    cURL: "http://path.to.url/index.php",
    cSubmitAs: "XFDF" // the default, not needed here
    In the web page there is a script that processes the data and after that it sends pdf document to the user that has submitted the form:
    header('Content-type: application/pdf');
    header('Content-Disposition: attachment; filename="confirmation.pdf"');
    readfile('confirmation.pdf');
    The problem only occurs on some computers i've tried this form. I have no idea why this is happening. Any ideas?

    The submit button is in the PDF file.
    http://s29.postimg.org/v5y4hmyg7/error.png

  • How to send quiz results to a web page?

    Okay, this should have taken 2 minutes, not 2 hours. Very frustrating. Here is the situation:
    * Downloaded Captivate 5 Trial Version
    * Created based quiz (which took forever to figure out how to set the correct answers -- HORRIBLE user interface for setup, but that is another issue)
    * I want the results sent to a web page. I will code the web page & database calls, etc. to handle the information (I am a web developer). Just need the information sent somewhere!
    Several big issues here:
    1. When setting up a URL for the "Pass or Fail", nothing happens. User not taken anywhere. No "Post Results" button shown. The Captivate file just ends and that's it. ??
    2. Finally figured out that I needed the "Internal Server" option chosen to have a Post Results button shown. Okay.
    So when I click Post Results (after answering the 5 questions correctly), I am shown a login box. Why? What is this for? This is not needed. I am going to an INTERNAL SERVER. It is none of Adobe's business what this person's name/email is. What gives? Okay... anyways, I enter my own Adobe login information. It then says "Connecting..." then I get a Status Message that says "Unknown Error". Keep in mind this will be used by a general audience, of which approximately 99.9% will not have an Adobe ID, nor should they need one.
    How I can easily have the Captivate file redirect the user to pages like this: Confirm.aspx?pass=yes or Confirm.aspx?pass=no.
    I don't need anything fancy. But I do need something that works. This is terribly frustrating and I'm about to say it just doesn't work. Please tell me I am wrong.
    Thank for your time and for reading this.
    -Randy

    The Quiz Results slide's Continue button actions are set under Quiz Preferences > Pass or Fail > If Passing Grade etc. By default, the Continue button is set to just continue on to the next slide after the Quiz Results.
    After the user clicks the Continue button on the Quiz Results slide any Pass/Fail actions you've set up there will be evaluated and executed.
    So if the user achieved a passing score, and you set up an action such as Go to URL in Current Window for that case, then the user should find themselves redirected to that URL.  If there was a different action for Failure, and the user failed, then that should happen.  But either of these will only happen after the Continue button is clicked.
    I tested this by setting www.google.com as the go to URL and it worked.  To see if the URL is the issue, try using another URL that you know everyone can get to.  If that works, try to find out why the URL you want to use is not working.  If no URL works, something else is interfering with the action.

  • How to fix extremely slow printing from web pages with latest updates (iMac) & HP Office jet printer. (It was not a problem with earlier versions of Firefox & same computer & printer.)

    The latest two updates of Mozilla Firefox are not useful for me because of extremely slow printing of web pages. It was never a problem before. Same iMac and HP officejet printer. How can I either fix it, or revert to an earlier version of the browser (without losing all my bookmarks) which didn't cause this problem?

    Try scanning from your Mac.  Use Image Capture app in your Applications folder.
    Click once on the scanner on the left side, then click on Show Details along the bottom.  Along the right side you will see LOTS of options for scanning and saving.
    Say thanks by clicking "Kudos" "thumbs up" in the post that helped you.
    I am employed by HP

  • How can I introduce text in a web page with automator?

    I want to create a workflow with automator for httpS web pages in which I have to introduce the user and password. how can I do?

    Try this:
    set the clipboard to item 1 of (get name of (static text of group 104 of UI element 1 of scroll area 1 of group 4 of window "Account Summary" of application process "Safari"))
    (10906)

  • How to reuse a form in two web pages?

    I have a create page for creating a user account and an edit page for editing a user account.
    I have two backing beans each with a user object that's being created or edited, for example:
    UserCreatorHandler.creationUser and UserEditorHandler.editUser
    Currently I have two JSPs -- createUser.jsp and editUser.jsp each have the same simple form on them (firstname, lastname, emailaddress) because they look like this:
    // createUser.jsp
    <h:inputText id="firstname" value="#{userCreatorHandler.creationUser.firstName}" />
    // editUser.jsp
    <h:inputText id="firstname" value="#{userCreatorHandler.editUser.firstName}" />My question is, how can I rework it so there one form:
    // userForm.jsp
    <h:inputText id="firstname" value="#{user.firstName}" />and have both createUser.jsp and editUser.jsp include the userForm.jsp by passing the user in as a parameter to the userForm.jsp page?
    Any help is greatly appreciated! Thanks,
    rh

    Make it a request scoped managed bean which you inject in the userCreatorHandler as managed property. You can find hints here.

  • How to send iPhone photos to Picasa Web Albums

    This may be old news, but I came across this today and thought others would find it useful. Here's exactly how to send iPhone photos to Picasa Web Albums...no 3rd party apps or downloads required!
    http://www.shaneeubanks.com/general/how-to-send-iphone-photo-to-picasa/
    Enjoy!

    You can upload directly to Facebook or Flickr by going to the photo on your phone and while viewing it, tap the upload button (square with an up arrow) at the lower left of the screen.

  • How to download a form from the web, complete and save it?

    How to download a form from the web, complete and save it?

    Download Adobe Reader. If the form author allows filling out digitally, you can do so and save it again.
    Mylenium

  • How to send a String to a Servlet using a HTTP POST

    Well, I have designed a servlet that receives a HTTP POST, I was testing it using an HTML form to send (using POST) information, now, I have coded a Java App to send it a string, I don't know how to make the servlet recognize that info so it can make its work, I am posting both codes (Servlet & API) so anyone can guide me and tell me how and where to modify them
    Servlet:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class xmlwriter extends HttpServlet
    public void service(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    ServletOutputStream salida = res.getOutputStream();
    res.setContentType("text/HTML");
    String cadena = req.getParameter("cadena");
    File f1 = new File ("c:/salida.xml");
    FileWriter out = new FileWriter(f1);
    f1.createNewFile();
    out.write(cadena);
    out.close();
    salida.println("OK");
    Now, the JAVA API is:
    import java.io.*;
    import java.net.*;
    public class HTTPSender {
    public static void main(String[] args) throws Exception {
    URL url1 = new URL
    ("http://localhost:8080/XMLSender/xmlwriter");//internal site
    URLConnection UrlConnObj1 = url1.openConnection();
    HttpURLConnection huc1 = (HttpURLConnection)UrlConnObj1;
    huc1.setRequestMethod("POST");
    huc1.setDoOutput(true);
    huc1.setDoInput(true);
    huc1.setUseCaches(false);
    huc1.setDefaultUseCaches(false);
    String cadena = ""
    + "<root>\n"
    + "<tlf>$TLF$</tlf>\n"
    + "<op>$OP$</op>\n"
    + "<sc>$SC$</sc>\n"
    + "<body>$BODY$</body>\n"
    + "</root>";
         PrintWriter out = new PrintWriter(huc1.getOutputStream());
    System.out.println("string="+cadena);
    out.write(cadena);
    out.close();
    I'm a JAVA newbie, so, maybe I'm getting a bad idea of what I need to do, anyway, every (detailed) help is welcome. What my servlet should do (and it doesn't when I send the message through the API) is to write a file with the info received.

    I'm not trying to send a string from a WEB Page, I'm tryring to send it using a JAVA program, I mean, using a HTTPSender, in fact, I already have made the code to do that:
    import java.io.*;
    import java.net.*;
    public class HTTPSender {
    public static void main(String[] args) throws Exception {
    try {
    String cadena = "Message to be written";
    // Send data
    URL url = new URL("http://localhost:8080/XMLSender/xmlwriter");
    URLConnection conn = url.openConnection();
    conn.setDoOutput(true);
    OutputStreamWriter wr = new OutputStreamWriter(conn.getOutputStream());
    wr.write(cadena);
    wr.flush();
    // Get the response
    BufferedReader rd = new BufferedReader(new InputStreamReader(conn.getInputStream()));
    String line;
    while ((line = rd.readLine()) != null) {
    // Process line...
    wr.close();
    rd.close();
    } catch (Exception e) {
    And modified my servlet so it can receive anything:
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.sql.*;
    public class xmlwriter extends HttpServlet
    public void service(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
    ServletOutputStream salida = res.getOutputStream();
    res.setContentType("text/HTML");
    String cadena = req.toString();
    File f1 = new File ("c:/salida.xml");
    FileWriter out = new FileWriter(f1);
    f1.createNewFile();
    out.write(cadena);
    out.close();
    salida.println("OK");
    Now the problem is that, the servlet in fact DOES create the file, but....the file is empty, that means that no info is arriving to the servlet, why?, how should I send it then? I repeat FORGET about a Web Page Form, that is in the past and I don't need that.

  • Connect java to php web page

    Hello...
    I am new in this forum, so I am sorry if I post my question in wrong place.
    I have php web page and want to call my java classes i.e connect java to php. My java code will read from file some info. then will organize these info. finally, the java will write the organized info. in file, the php will display the content of the file.
    can help me please to achieve this goal...
    thanks in advance
    ibtesam saleh

    I do not how to use JPoller, put it looks very advanced.
    Or you can use a simple code in (java/perl/c/what so every u know)
    void main(){
    while (true) {
    checkDirectoryAndReadNewCommandsAndWriteNewOutputs();
    Thread.sleep(waitTime);
    }and put your program on your windows/linux startUp
    Or you can learn using sockets in java and write your own html service with port 80 (I did some experiments)
    Or you can try to use WebService example from Netbeans program (I tried it worked for me)
    Or you can learn J2EE (I have never find the time to look at)
    Or ... many ideas, to time :)

  • Printing forms imbedded in web page

    Hi All,
    This is my first post, and I need some help.
    HP Officejet 8615
    Several doctors and dentists have embedded forms on their web page for new patients to complete.  I can't get these forms to print.
    I have tried printing the form from the web page = unsuccessful.
    I have tried saving the form to my desktop and printing it = unsuccessful
    I have run the HP diagnostics and successfully printed a test page.
    My computer:
    Windows 7 Pro 64-bit with SP1
    3.00 gigahertz Intel Pentium G3220 Processor
    6 GB RAM
    Adobe Acrobat 9.0 Standard, updated
    All MS Security updates installed. Kaspersky Anti- Virus installed. Updated, returns clean scans.
    Malwarebytes Pro up dated and returns clean scans.
    I have no problems with my computer or printer, except I can’t get these embedded forms to print.
    Any Suggestions?
    Thanks in advance,
    Owl69
    This question was solved.
    View Solution.

    Owl69
    Welcome to the HP Community Forum.
    Ideas and thoughts on the subject...
    You mentioned the word "Acrobat" -- this makes me think you are dealing with a PDF form??
    PDF format can be tricky.  Forms that look OK may or may not actually be something the printer can translate into printer language and spit out as actual print on a page. 
    You could try printing the PDF file as in Image -- this is a tried and true method of printing out PDF files that may be stubborn and won't otherwise print.  See below...
    Things that are PDF:
    PDF file will not print
    Quick fix | Print PDF as image | Acrobat, Reader
    PDF file will not print (2)
    Check your PDF viewer in your browser > Options
    Example
    Firefox > Tools > Options > Applications >
    Portable Document Format (PDF) >> select Use Adobe Reader
    Adobe Reader Download
    ===================================================
    If you get desperate, and you can SEE the form you need on the screen, you can use Snip to grab a screen shot of the form, save the file as an Image, and print that.
    Snipping Tool - Windows 7
    Snipping Tool- Windows 8.x
    Apple-Talk
    How to Print Screen on a Mac, 6 different ways to capture screenshot on a Mac
    ===================================================
    If you can get the saved form, whatever the format, into a Word file and then perhaps save that Word file into a new PDF file -- and maybe use Word's embedded font feature -- then you might be able get the file to print.
    Click the Kudos Thumbs-Up to say Thank You!
    And...Click Accept as Solution when my Answer provides a Fix or Workaround!
    I am pleased to provide assistance on behalf of HP. I do not work for HP. 
    Kind Regards,
    Dragon-Fur

  • HOW to send a value to another jsp page

    HOW to send a value to another jsp page, like user name in one jsp page to another jsp page

    In the most simplest form...
    // pageA.jsp
    <html>
    <body>
    <form action="pageB.jsp" method="post">
    <b>First Name:</b> <input type="text" name="FNAME" value="Joe">
    <input type="submit" value="Submit">
    </form>
    </body>
    </html>
    // pageB.jsp
    <html>
    <body>
    <b>Name:<b> <%=request.getParameter("FNAME")%>
    </body>
    </html>

  • How to open up Forms and navigate to record with external hyperlink?

    Hello,
    I was wondering whether it is possible to open up a Forms Application, and navigate to a specific Form and record via an external hyperlink. For example in an e-mail a hyperlink is generated which should redirect the user directly into the application and to the correct Form and record ID.
    Thanks in advance for any suggestions.
    Regards

    I suppose this is theoretically possible. The hard part would be to figure out how to pass the equivalent of a ParamList or a Global Variable to a form from a web page. Then you could test for these ParamList or Global values in the called form and navigate to the desired Form and query a specific record. I've seen some demo's on OTN where they embedded a Form into a Web Page and was able to interact between the web page and the form and vis-versus. Unfortunately, I can't remember where I saw the demo, but it was just recently that I saw it. If you can find this demo, it might give you some ideas how to do what you are trying to do.
    Sorry I couldn't be more helpful.
    Craig...
    Edited by: CraigB on Sep 3, 2008 3:07 PM
    Figures, as soon as I post my response, I found the article. Here's the link: http://www.oracle.com/technology/pub/articles/wilfred-adf-forms.html (Integrating Forms with Oracle ADF Faces).

Maybe you are looking for

  • How to slice object and stroke with knife tool?

    I am trying to slice an object into 2 pieces using the knife tool. The problem is that both cut pieces retain a complete stroke outlining the object rather than a cut stroke. How do I slice the object in half and get the effect of cutting thru the st

  • Help! My i-pod isn't showing up as a playlist

    1st generation i-pod nano I have fixed the problem with the shutting off my i-pod, but I can not get it to show up as a playlist! It took me mounths to save up for my i-pod! I'm going to try and get it replaced, but is there any other way? I have alr

  • Error message at VA01

    Hi guys, I've tried to display an error message and I know that it makes all field greyed out. Is there a way there I can validate header data and prompt the user a message? I've searched around but no avail. I've tried coding at MV45AFZZ, MV45AFZB b

  • [OT??] Adobe Reader X and the Internet

    I could not find a way to get to simply a forum on Adobe Reader available for free. Here's my problem. To get out of a bind with Acrobat Reader Pro 8 on Win 7 that stopped me from using it for reading a pdf off of the internet, I switched to X.  My p

  • LV8 upgrade for cFP-2120 with LVRT 7.1

    We need to update the embedded software for cFP-2120 units distributed to customers.  The units are shipped with LVRT 7.1 and the embedded programs are written in LV 7.1.   We have installed LV 8.  Can we update the LV 7.1 programs to LV 8 and then u