Redirect to another page with parameter passing using the POST method

Hello

I need to redirect to another page and pass parameters to it with the POST (not GET) method. How can I do?

So far, I tried the 2 options and none of them works very well:
1. I wrote a pl/sql procedure, but if I run it, then the page runs on my server application instead of actually going to another page in another server (I see the neame of the procedure in the web browser's address bar). Is there a way to work around a bit so that really, it goes to another page and pass the variables?

procedure do_post)
p_api_url in varchar2)
is
l_http_req utl_http.req;
l_http_resp utl_http.resp;
l_response varchar2 (4000);
l_post varchar2 (4000);
v_line varchar2 (4000);
v_wallet varchar2 (100): = "file:/etc/ORACLE/WALLETS/oracle5";
v_wallet_pwd varchar2 (100): = "test1234".
Start
l_post: = ' VK_SERVICE = 1001 & VK_VERSION = 008 & VK_SND_ID = testvpos & VK_STAMP = 88';

Utl_http.set_Proxy (apex_application.g_proxy_server, NULL);
Utl_http.set_persistent_conn_support (true);
Utl_http.set_transfer_timeout (300);
Utl_http.set_wallet (v_wallet, v_wallet_pwd);
l_http_req: = utl_http.begin_request (p_api_url, 'POST');
Utl_http.set_header (l_http_req, "Proxy-Connection ',' Keep-Alive'");
Utl_http.set_header ("l_http_req, 'Content-Type', ' application/x-www-formulaires-urlencoded; charset = utf-8 ');
Utl_http.set_header (l_http_req, "Content-Length", length (l_post) ");
Utl_http.write_text (l_http_req, l_post);
l_http_resp: = utl_http.get_response (l_http_req);

LOOP
Utl_http.read_line (l_http_resp, v_line, TRUE);
HTP.p (v_line);
END LOOP;
Utl_http.end_response (l_http_resp);

EXCEPTION
WHEN utl_http.end_of_body THEN
Utl_http.end_response (l_http_resp);
end do_post;


2. the second option, I tried is to put this script to my page of request code:

< name of the form = 'mounted' action = 'https://www.somekindofurl.com/cgi-bin/dv.sh/un3min.r. '
method = "POST" target = "_top" >
< input type = "hidden" name = "VK_SERVICE" value = "1001" >
< input type = "hidden" name = "VK_VERSION" value = "008" >
< input type = "hidden" name = "VK_SND_ID" value = "testvpos" >
< input type = "hidden" name = "VK_STAMP" value = "88" >
< input type = "submit" value = "Let's's Pay" >
< / make >

< / make >

But it does not work as APEX has its own system of Forms control. Is it possible to play? I tried to delete #FORM # of page templates and it works fine then. The problem is that I have other forms on the page as well (login form + search form) so I can't remove this manipulation of shape native APEX. Is it possible to play with it?


Thank you much in advance.

Hi Ibenarobeno,

Your form can live at the end of the page with all the hidden items.

You can then control with buttons and fields within the form of the Apex.
through a bit of javascript.

Concerning

Michael

Tags: Database

Similar Questions

  • How to send images and a single parameter to the server by using the POST method. ?

    Hey

    I want to send images and a single parameter to the server by using the POST method.

    Please help me.

    Vaishali, take a look at this-

    http://developer.Nokia.com/community/wiki/HTTP_Post_multipart_file_upload_in_Java_ME

    Thank you.

  • How to use the post method?

    Hello

    I need to send an image on the server using the post method.

    I connect using Http, like this:

    HttpConnection _http = (HttpConnection) Connector.open (address);

    can someone provide an example of how can I use a post method to send the data to the server?

    Kind regards

    I solved the problem. Here is my code, which works:

    Bitmap _bitmap = new Bitmap(Display.getWidth(), Display.getHeight());
                Display.screenshot(_bitmap);
    
    JPEGEncodedImage _jpg = JPEGEncodedImage.encode(_bitmap, 20);
    DataBuffer _db = new DataBuffer();
    _db.write(_jpg.getData());
    
    _http = (HttpConnection)                    Connector.open(_url, Connector.READ_WRITE);
    
    _http.setRequestMethod("POST");
    
    _http.openOutputStream().write(_db.toArray());
    _http.getResponseCode();
    

    Kind regards

  • Form to redirect to another Page with SSL

    I redirect a form submit button to another page on an SSL site, but redirected page becomes secure.

    Here's what I now < input type = "hidden" name = "redirect" value = "RPB_payments.html" / > "

    Worse still, when I use the full URL (https://payments.eventlightingonline.com/RPB_payments.html) result with "not found".

    In other words, when a visitor clicks on the button submit on this page https://payments.eventlightingonline.com/RPB_bookings.html he should go to this page https://payments.eventlightingonline.com/RPB_payments.html and remain secure.

    Any suggestions?

    Thank you!

    GDform.php is not sufficient for your needs.   GD has a webformmailer.php who seems to have more features.

    http://support.GoDaddy.com/help/article/510/using-PHP-form-mailers

    That said, you can get much better security & protection anti-spam if you use another PHP script like this master DB.

    FormM@ailer PHP Master DB

    http://dbmasters.NET/index.php?ID=4

    Nancy O.

  • Error with IP customization using the CSV method

    This error is similar to the pulse of the OS error that has been well documented here, but I can't find something specific for the moment of customization of IP address which is my problem.

    I got this working yesterday, and then I applied the latest patches and my ESX servers today and now the recovery test always comes to about 50 or 60 percent of stage of change network and then expires. I extended the timeout to 1000 and it does not help. When the step times out trial and error. If I manually by removing the step of customization of the virtual machine complete the recovery without problem.

    Does anyone know what patch may be at fault or if there is another possible cause of this problem? I'm under VC 2.5 build 104215 and ESX 3.02 build 95415 with just about every available patch installed.

    What version of the OS are the virtual machine is your trying to recover?

    your customization comments journal suggests that the version of sysprep using is Windows 2000 Sysprep (Sysprep version 5.00.2195.2104).

    If Windows 2000 is NOT to your virtual machine under restoration in the stimulus plan, then comments customization will fail. If that's the case then looks that your VC server on the recovering site doesn't have access to the necessary sysprep files for all versions of Windows, you use.

    You get the sysprep from microsoft, for most builds of windows, you can extract them from the deploy.cab file located in the Tools folder of deployment of OS CD/DVD media. Once you have necessary deploy.cab to the version of windows that you want to customize in virtualcenter, you must extract the contents of the the.cab file to the correct location on your virtualcenter server.

    If you connect to the recovery site virtualcenter Server navigate to this folder: C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\sysprep under here you will see the subfolder "heels" for the different windows builds. Initially these subfolders will be empty until what download you / locate the deploy.cab files that correspond to the version of the OS for that void / folder and then extract the content in this folder.

    This Web page has some info and links to major releases:

    http://www.VM-help.com/ESX/other/sysprep_download_links.html

    I would say, based on the errors that you check first the version of windows, your recovery that hangs on "change network settings" and then make sure you have the necessary sysprep files in C:\Documents and Settings\All Users\Application Data\VMware\VMware VirtualCenter\sysprep\ < youOStype > on site VC recovery file server.

    hope this helps,

    Lee Dilworth

  • How to redirect to another page Using JavaScript in ADF Faces?

    Hi guys,.

    I have a case of user UI that has an af:menu which contains mutiple af:goMenuItem. When the user clicks on the menu, the menu slides down and the af: goMenuItem presents itself. As we know, you can set page destinations in af:goMenuItem to go to another page when the user has clicked, but af:menu itself cannot be redirected to another page. Well, the case of the user wants the menu itself could be redirected if the user clicks on it.

    So I think that the use of JavaScript to do this: when you click on the af: menu, redirect to another page. BUT, I've looked over the ADF Faces Javascript API and wasn't able to find this piece of code to do this. Any help?

    Another work around to the user scenario is to use the brands of HTML + CSS/JavaScript instead of af: menu and af:goMenuItem, but this changes the scope of the technology although it is not hard to do

    Any other idea to make the case of the user other than what I could think?


    Thank you guys!

    Jay

    Hello

    1. you can have a control hidden element to the navigation based on a case of control flow. In this case, you access the JavaScript command component create a new ActionEvent and he queued
    2 - JavaScript can use an af:serverListener to call a server side managed bean method to perform the navigation

    There is no JavaScript API for navigation in ADF Faces because navigation in JavaServer Faces is an event-driven framework and we do not support the developers of fight against the framework.

    Frank

  • Firefox prevented this page from auto redirection to another page

    Firefox prevented this page from auto redirection to another page
    I get this message every time I go to the new search page. I'm if tired after you press the F - ING allow it's not funny. Cannot Fire fox remember the pages of dam that go? Every time freaking that I go to a new page that the accessories and I have to click allow. I would like to get rid of this for good so if you can help me it's cool, if not then bye. I'll explore for browser. I can't take more. In addition, when I read that page moves upward again and I have to click on authorize again.

    Try this: Firefox button > Options > Options (or tools > Options) > advanced > general, uncheck 'warn me when Web sites try to redirect or reload the page'

    If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.

    You use obsolete, and is no longer supported version of Firefox (version 3.5.5) which is likely to have many problems of security and stability. Upgrade to the current version.

    Also see-> https://support.mozilla.org/en-US/kb/common-questions-after-upgrading-firefox-36

    Not related to your question, but...

    You may need to update some plug-ins. Check your plug-ins and update if necessary:

  • I want to do a video opening and to redirect to another page after the end of the video, how do?  No matter what widget or code can do?

    I want to do a video opening and to redirect to another page after the end of the video, how do?  No matter what widget or code can do?

    Can do in muse and I tried to use dreamweaver like the code below:

    <! doctype html >

    < html >

    < head >

    < / head >

    < body >

    < style >

    {#video_background}

    position: fixed;

    Bottom: 0px;

    right: 0px;

    min-width: 100%;

    min-height: 100%;

    Width: auto;

    height: auto;

    z index:-1000;

    overflow: hidden;

    }

    < / style >

    < video id = "video_background" preload = "auto" autoplay no Cup >

    < src = "source opening.webm" type = "video/webm" > "

    < src = "source opening.mp4" type = "video/mp4" > "

    This browser does not support video

    < / video >

    < script type = "text/javascript" >

    {document.getElementById('video_background').addEventListener ('ended', function ()}

    window.location.href = ' http://www.xxxx.com';

    (}, false);

    < /script >

    < / body >

    < / html >

    adeletsang wrote:

    Thanks for your reply.

    I just need to click on "object > insert html ' muse and paste the code there?

    My video ID is video_background which is defined by the widget by default, I should change the code below:

    The site I posted has no video in there and I don't have the widget that Peter sugested however, you can replace the startup code Nacy O made (the black with bit blob going around it) and it should work... understand that a ve\ideo will have to be downloaded by your browser clients before they can see it, so it's another delay for them.

    The code you posted is the code of downtime and that seeks a DIV not called "intro" so no do not change his name...

    A mandatory opening text

    After 5 seconds, this block will disappear.

    Everything between the two div tags is startup code and replace you it with you video and then use the muse "object > insert html" tool to place on your page.

    The demo includes three bits;

    • the body or the div tag is the code shown above and goes into the tool "insert html".
    • a header code that defines styles i.e. the yellow background and text... cela goes in your location of metadata page

    • The final code is the timeout in jQuery you had but do not change the name to the background image unless you also change the name of your div to match... Nacy O put it in its footer code that is correct for DW, but Muse has no footer as such area so I used a master metadata slot to the same effect. The important point is that it descends UNDERNEATH other codes.

    Have a play with it and see how you go...

  • Error JSON trying to redirect to another page in the same application

    I'm implementing a dynamic PL/SQL action that is triggered by clicking a button.  Dynamic action sets two values in a table and then I want to redirect to another page.  The works of fine setting values.  The code is below:

    declare

    l_information VARCHAR2 (255): =: P94_FILENAME;

    BEGIN

    commit;

    UPDATE VDI_METADATA

    SET CREATEUSERLISTNAME = l_information,

    CREATEUSERLISTON = sysdate().

    commit;

    HTP.init;

    owa_util. REDIRECT_URL ('f? p = & APP_ID.:81: & APP_SESSION.:NO :::');)

    END;

    The redirection fails with the following error:

    "Error: parseerror: JSON.parse: not just a space unexpected character after JSON data.

    I tried several approaches, using the suggestions in this forum on how to redirect to a page of PL/SQL.  None of them lead to success.

    Can anyone tell me: what is the system to complain?  And is there a work around?

    Thank you.

    John,

    I recommend the addition of another true action in your dynamic action that executes javascript.  the logic would be just redirect('f?p=&APP_ID.:81:&APP_SESSION.::NO:::');

    Remove everything after the validation of your action of pl/sql.

    David

  • How to redirect to another page in a dialogListener?

    Hi all

    I use JDeveloper 11 g with ADF BC.

    How to redirect to another page of a < af:dialog > dialogListener?
    I have a page with a button [delete] on this subject. When the user clicks on the button Delete, a confirmation dialog box appears asking "are you sure? [Yes/No] ». If the user answers [Yes], I will delete the current record and go to another page. Can I call a linking operation in the dialogListener, but I don't know how to go to another page.

    {} public void handleDeleteDialog (DialogEvent dialogEvent)
    OperationBinding operationBinding = bindings.getOperationBinding ("Delete");
    Object result = operationBinding.execute ();
    If (! operationBinding.getErrors () .isEmpty ()) {}
    }

    Redirect to another page?

    }

    Kind regards
    Samson Fu

    Hi Samson,.

    Check the following link corresponding to your query: -.

    Re: account page navigate to the next page when you click the button on the shortcut menu

    You can also make use of Navigation handler invoke the action of navigation in your workflow as

    FacesContext facesCtx = FacesContext.getCurrentInstance ();
    NH NavigationHandler = facesCtx.getApplication () .getNavigationHandler ();
    nh.handleNavigation (facesCtx, "", "ActionNameInTaskFlow");

    Vikram

  • How can I activate Firefox prevented this page from automatically redirecting to another page? This unfortunate thing has now completely blocked me connect to a Web site.

    How can I disable this message blocking? "firefox prevented this page automatically redirecting to another page.
    It used to be boring, but now he has completely blocked me to connect to a Web site.

    Tools > options > advanced > general...
    then uncheck the...
    I myself have this option because I stand bad pages themselves help to redirect to who knows what. Why can't you just go sites where I click?

  • I'm constantly projected this message: "Firefox prevented this page automatically redirecting to another page." Why does this happen?

    I'm constantly projected this message: "Firefox prevented this page automatically redirecting to another page." The result is that I'm often looking to a white screen with an option to click on "allow". But sometimes the message arrives and I'm on the page I want to be on anyway. I do not understand this and do not know how to change this setting, if indeed I configure Firefox this way. Help?

    There is a setting that can cause this message in the Options > Advanced Options > general

    "Warn me when websites try to redirect or reload the page.

    http://support.Mozilla.com/en-us/KB/options%20Window%20-%20Advanced%20panel

  • After printing redirection to another page

    Hi all

    I print a button with action-"Redirect URL" and

    Target of the URL: javascript:window.print (). For the moment everything looks very well and after printing

    page of that remains in the same window. But now the new requirement , it is after the printing of the page,

    He wants to redirect to another page. How can I achieve this

    in the oracle apex 4.0 environment.

    Thank you and best looks

    Seny

    Hi Para,

    Finally it worked! . Thanks for all your responses and Sunil.

    Only change I made was to remove "href" of "windows.location.href".

    function printMethod() {}

    Window.Print;

    Window.Location ='f? p = & APP_ID.: 1600: & APP_SESSION.';

    }

    now it works like a charm. Thanks for your great support.

    Thank you and best looks

    Seny

  • similar message: "Firefox prevented this page automatically redirecting to another page" Skype phone is one of these... Why?

    1. I click on "Eastlink" this message "Firefox prevented this page automatically redirecting to another page.
    2 when I go to SKYPE, it only allows me to make a call.

    Thanks for help, Georgina
    

    To disable this function:

    Orange button or Firefox menu Tools > Options > advanced

    In the mini ' General' tab, uncheck the box in front of this option:

    "Warn me when web sites try to redirect or reload the page.

    Does it work?

  • How to get around the "Firefox prevented this page auto redirection to another page?

    whenever I click on a website to get more information, I have to
    Let him. The bar to say the-Firefox prevented this page from auto
    redirecting to another page.
    If I click on it I want to go out there and not having to rely on a permit
    button. Help!

    Tools > Options > advanced > General > let me Warn course when the site try to redirect or reload the page is unchecked.

Maybe you are looking for