To Send POST Method Value in ProxyServer

Hello
I developed a ProxyServer. Problem is when i send post method value to server...data is not sending correctly. But i can get the value correctly form browser. How can send the post method values.
My source code is
* ServerThread.java
* Created on May 15, 2001, 2:05 PM
* @author  maniksanthosh
* @version
import java.io.*;
import java.net.*;
import java.util.*;
import java.io.BufferedInputStream;
public class ServerThread extends java.lang.Thread {
    /** Creates new ServerThread */
    Socket client;
    public ServerThread(Socket client) {
        this.client = client;
    String SampleURL="";
    public void run() {
        try
        client.setKeepAlive(true);
        DataInputStream Sin = new DataInputStream(client.getInputStream());
        OutputStream Sout = client.getOutputStream();
        String request = Sin.readLine()+"\n";
       System.out.println(request);
        int fsp =  request.indexOf(' ');
        int nsp = request.indexOf(' ',fsp+1);
        int eol = request.indexOf('\n');
        String method = request.substring(0,fsp);
        System.out.println("Method Length :"+method.length());
        String SUrl = request.substring(fsp+1,nsp);
        String raw_mime_header = request.substring(eol+1);
        request = request.substring(0,eol);
       /* System.setProperty("proxySet","true");
        System.setProperty("proxyHost","132.132.64.244");
        System.setProperty("proxyPort","3128");*/
            System.out.println(SUrl);
         URL url = new URL(SUrl);
         HttpURLConnection urlc =(HttpURLConnection)url.openConnection();
         System.out.println("System Method :"+urlc.getRequestMethod());
         urlc.setDoOutput(true);
         System.out.println("URL: "+url);
         System.out.println("Method: "+method);
     //   System.out.println("Request Property :"+urlc.getRequestProperty("accept"));
         String data ="";
        if(method.equalsIgnoreCase("GET"))
          // urlc.setRequestMethod("GET");
           /*while((data = Sin.readLine())!=null)
                if(data.equals("") || data.equals(" ") || data.equals("\r\n\r\n"))
                    URLout.writeBytes("\r\n\r\n");
                    URLout.flush();
                    break;
                URLout.writeBytes(data+"\r\n");
                URLout.flush();
         int ch =0;  
            InputStream URLin = urlc.getInputStream();
            while((ch=URLin.read())!=-1)
                Sout.write(ch);
                Sout.flush();
        }else
if(method.equalsIgnoreCase("POST"))
          DataOutputStream URLout = new DataOutputStream(urlc.getOutputStream());
          System.out.println("Request Method : "+urlc.getRequestMethod());
          System.out.println("Instance Follow Redirects : "+urlc.getResponseCode());
          urlc.setInstanceFollowRedirects(true);
     //     urlc.setDoInput(true);
            while((data=Sin.readLine())!=null)
                 if(data.equals("") || data.equals(" ") || data.equals("\r\n\r\n"))
                    URLout.writeBytes("\r\n");
                    int postch = 0;
                    int total = Sin.available();
                    System.out.println("Total :"+total);
                    for(int l=0;l<total;l++)
                       postch=Sin.read();
                       URLout.write(postch);
                    System.out.print((char)postch);
                    //   URLout.flush();
                    URLout.writeBytes("\r\n");
                  // URLout.flush();
                    break;
                 urlc.setDefaultRequestProperty("POST",postch);
                 URLout.writeBytes(data+"\r\n");
                URLout.flush();                                 
            int ch =0;  
            InputStream URLin = urlc.getInputStream();
            while((ch=URLin.read())!=-1)
                Sout.write(ch);
                Sout.flush();
            URLin.close();
            URLout.close();
               Sout.flush();
         Sin.close();
         Sout.close();
         Sin.close();
        }catch(Exception e){System.out.println("Inside Run Method in Server Thread "+e);}
    private String getPostValue(InputStream in) //throws IOException
     /*byte buf[] = new byte[8192];
     int pos = 0;
     int c;
     while((c=in.read())!=-1)
        System.out.print((char)c);
            switch(c)
                case '\r' :
                    break;
                case '\n':
                 if(buf[pos-1]==c)
                        return new String(buf,0,pos);
                 default:
                     buf[pos++] = (byte) c;
      return null; */
        /*DataInputStream data = new DataInputStream(in);
        String postStr ="";
        while((postStr=data.readLine())!=null)
            System.out.println(postStr);
        return postStr;*/
        return null;
   private String  getRawRequest(InputStream in) throws IOException
        byte buf[] = new byte[8192];
        int pos=0;
        int c;
        while((c=in.read())!= -1)
            System.out.print((char)c);
            switch(c)
                case '\r' :
                    SampleURL+="/r";
                    break;
                case '\n':
                    SampleURL+="/n";
                 if(buf[pos-1]==c)
                        return new String(buf,0,pos);
                 default:
                     buf[pos++] = (byte) c;
                     SampleURL+=(char)c;
        return null;
}

I can read all the value from browser ..but i couldn't send that to server. I changed ("\r\n\r\n") to ("\r\n"). Still the value is not going correct.
Whether I have to use setDefautRequestProperty(). if i have cookies..how can i send that value to browser from Server or from Server to browser.
Regards
Santhosh

Similar Messages

  • How to send plain text body in HTTP Post method ?

    Hi Exeperts,
    I have a scenario http post - ptoxy. Sender sending the data in http post in plain text body (only field values will be in the body).
    how should i capture this plain text for receiver to map..
    is any udf or xsl code ?
    please guide me for achieving this requirement .
    find the attachment for http post body value.
    Regards
    Ravi

    Hi Mark,
    Thanks for your reply,
    Please share you have any udf  for this .
    can you explain me how should i map to target side.
    what are the configuration should i done in communication channel level
    Regards
    Ravinder.s

  • How to send recomposed data in post method.

    Currently, i try to build up MVC user authentication. I used login.html as View, servletA as controller to invoked Model and servletB as Model. The servletB will return queried result to servletA then servletA will decide redirected to specific url.
    I has successful use the RequestDispatcher.forward(request, response) to post data from servletA to servletB. whereas i faced a trouble to post data back from servletB to servletA, which i unable put the queried result into request obj before post it back to servletA.
    Any genius recommendation about this? or Any method composed data to send via post method?

    Here's a quick rundown that might help:
    Use request.setAttribute() to put an item in request scope in a servlet before dispatching to another servlet or JSP.
    Use <useBean> tag in a JSP to read the data on the JSP that the servlet put in request scope.
    Alternatively, you can use request.getAttribute(), but the useBean is preferred.
    Use request.getParameter() in a servlet to read data that the <form> tag on the JSP page put in request scope.
    Use request.setAttribute() and request.getAttribute() to get send/get data between servlets (it could be request.getParameter(), but I dont think so).
    There is a RequestDispatcher.forward() and a RequestDispatcher.include(). I'm not sure what the differences are (you'll have to research it.
    In MVC, I have a single servlet for the controller (receive all url's, and dispatch to the appropriate JSP). I dont hava a separate servlet for the model. Instead, I instansiate a business object on the servlet, pass data to it, and let it do the calcuations. Then I have it return the data to the servlet which puts it in request scope for the JSP page when I dispatch to it. My MVC usuallyconsists of:
    JSP -presentation layer
    servlet - control layer
    business logic layer
    database layer (DAO).
    Each layer does not contain the functionality of one of the other layers (clean separation of concerns).
    Last note: Whereas you can use a servlet for the controller, a framework such as Spring or Struts is often used instead.

  • Want to send information in Header dynamically using HTTP adapter using post method

    Hi ,
    I have a requirement to send below information in http Adapter header dynamically using post method. which will be authenticated by third party system.
    Authorization : WSSE realm="SDP", profile="UsernameToken", type="AppKey" X-WSSE : UsernameToken Username="XXXX", PasswordDigest="Qd0QnQn0eaAHpOiuk/0QhV+Bzdc=", Nonce="eUZZZXpSczFycXJCNVhCWU1mS3ZScldOYg==", Created="2013-09-05T02:12:21Z"
    I have followed below link to create UDF
    http://scn.sap.com/thread/3241568
    As if now my third party system is not available while sending request I am getting 504 gateway error. is there any approach I can validate my request is working fine?
    Regards,

    Hi Abhay,
    Correct me if I'm wrong but I think WSSE requires a SOAP Envelope. If that is the case, there are two approaches: the first one is to use SOAP Axis and the second one is just to build SOAP Envelope via Java mapping.
    You also need to test it successfully externally, capture the request and replicate it in XI.
    Hope this helps,
    Mark

  • Sending XML messages from server to client using POST method

    Dear everyone,
    I have a simple client server system - using Socket
    class on the server side and URLConnection class on
    the client side. The client sends requests to the
    server in the form of an XML message using POST method.
    The server processes the request and responds with
    another XML message through the same connection.
    That's the basic idea.
    I have a few questions about headers and formats
    especially with respect to POST.
    1. In what format should the response messages from the
    server be, for the client? Does the server need to
    send the HTTP headers - for the POST type requests?
    Is this correct?:
       out.println("HTTP/1.1 200 My Server\r");
       out.println("Content-type: text/xml\r");
       out.println("Content-length: 1024\r");
       out.println("\r");
       out.println("My XML response goes here...");2. How do I read these headers and the actual message
    in the client side? I figured my actual message was
    immediately after the blank line. So I wrote
    something like this:
       String inMsg;
       // loop until the blank line is through.
       while (!"".equals(inMsg = reader.readLine()))
          System.out.println(inMsg);
       // get the actual message and process it.
       inMsg = reader.readLine();
       processMessage(inMsg);But the above did not work for me. Because I seem to
    be receiving a blank line after each header! (I suppose
    that was because of the "\r".) So what should I do?
    3. What are the different headers I must pass from
    server to the client to safeguard against every
    possible problem?
    4. What are the different exceptions I must be prepared
    for this situation? How could I cope with them? For
    example, time outs, IOExceptions, etc.
    Thanks a lot! I appreciate all your help!
    George

    hello,
    1) if you want to develop a distributed application with XML messages, you can look in SOAP.
    it's a solution to communicate objects distributed java (or COM or other) and it constructs XML flux to communicate between them.
    2) if it can help you, I have developed a chat in TCP/IP and, to my mind, when you send datas it's only text, so the format isn't important, the important is your traitement behind.
    examples :
    a client method to send a message to the server :
    public void send(String message)
    fluxOut.println(message);
    fluxOut.flush();
    whith
    connexionCourante = new Socket(lAdresServeur, noPort);
    fluxOut= new PrintWriter( new OutputStreamWriter(connexionCourante.getOutputStream()) );
    a server method in a thread to receive and print the message :
    while(true)
    if (laThread == null)
    break;
    texte = fluxIn.readLine();
    System.out.println(texte);
    that's all ! :)
    If you want to use it for your XML communication, it could be a good idea to use a special message, for example "@end", to finish the server
    ex :
    while(true)
    if (laThread == null)
    break;
    texte = fluxIn.readLine();
    // to stop
    if (texte.equals("@end"))
    {break;}
    processMessage(texte );
    hope it will help you
    David

  • Send the fields of a form with POST method

    I have a form based on a table, used to insert news. The problem is that I have to send the fields of the form to another aplication when I push the INSERT button, but I have to send them using the POST method.
    I tried to insert code in the event of the INSERT button to do that, but I think it uses the GET method and the other application doesn't receive anything.
    Thank's.

    FWIW, the usual explanations in regards to this are wrong more often that they are right.
    For example, the Acrobat License Agreement says nothing about emailing extended documents or posting extended documents on a web site, but rather simply deploying them.
    Also, it only mentions instances of an extended document in relation to how many the licensee may extract information from if the document was deployed to more than 500 recipients and returned to the licensee.
    If there are 500 or fewer recipients, the licensee may extract information from an unlimited number of instances of an extended document.
    George

  • Example of sending the po request to my partner using https post method

    I need to send the po request to my partner using https post method.
    Is there any example for my scenario in oracle b2b?
    Usecase:
    mycompany
    othercompany
    mycompany -> Posts xml document with no namespace -> othercompany
    Protocol: https

    I need to send the po request to my partner using https post method.It is possible. FYI, by default HTTPS uses post method.
    Is there any example for my scenario in oracle b2b?Not exact sample is available but yes, similar samples are available here -
    http://www.oracle.com/technology/sample_code/products/b2b/index.html
    I would suggest you to go through below tutorial to have better understanding -
    http://www.oracle.com/technology/products/soa/b2b/collateral/B2B_TU003_ebxml.pdf
    Namespace is not an issue. It's upto you whether you like to keep it or not. From XML technology point of view, it is always recommended to have a namespace to bind each and every node with it, but I have seem cases where people don't use them.
    Regards,
    Anuj

  • How to use POST method to send & recieve XML data in WebDynpro application

    Hi There,
    How can we use POST method in a Url (callign weebdynpro application) and pass XML String content. How can we read this this inside WD Application.
    Any pointers will be great help.
    Rgds

    Closed

  • Passing Parameters via Post Method from Webdynpro Java to a web application

    Hello Experts,
    I want to pass few parameters from a web dynpro application to an external web application.
    In order to achieve this, I am referring to the below thread:
    HTTP Post
    As mentioned in the thread, I am trying to create an additional Suspend Plug parameter (besides 'Url' of type String) with name 'postParams' and of type Map.
    But when I build my DC, I am getting the same error which most of the people in the thread have mentioned:
    Controller XXXCompInterfaceView [Suspend]: Outbound plug (of type 'Suspend') 'Suspend' may have at most two parameters: 'Url' of type 'string' and 'postParams' of type 'Map'.
    I am using SAP NetWeaver Developer Studio Version: 7.01.00
    Kindly suggest if this is the NWDS version issue or is it something else that I am missing out.
    Also, if it is the NWDS version issue please let me know the NWDS version that I can use to avoid this error.
    Any other suggestion/alternative approach to pass the parameters via POST method from webdynpro java to an external web application apart from the one which is mentioned in the above thread is most welcome.
    Thanks & Regards,
    Anurag

    Hi,
    This is purely a java approach, even you can try this for your requirement.
    There are two types of http calls synchronous call or Asynchronous call. So you have to choose the way to pass parameters in post method based on the http call.
    if it is synchronous means, collect all the values from users/parameters using UI element eg: form and pass all the values via form to the next page is nothing but your web application url.
    If it is Asynchronous  means, write a http client in java and integrate the same with your custom code and you can find an option for sending parameters in post method.
    here you go and find the way to implement Asynchronous  scenario,
    http://www.theserverside.com/news/1365153/HttpClient-and-FileUpload
    http://download.oracle.com/javase/tutorial/networking/urls/readingWriting.html
    http://digiassn.blogspot.com/2008/10/java-simple-httpurlconnection-example.html
    Thanks & Regards
    Rajesh A

  • Calling https web service POST method from ABAP

    Hi all,
    I'm having some problems trying to call a credit card https web service from ABAP on 2004s SP11. I'm not using a proxy server and a call from a test https page on my local machine works fine. The page does not require a certificate.
    Do I need to do anything in particular to make https work ? I've done calls to http services without any problems. The only difference from a programming perspective as far as I know is the scheme 2 instead of 1, and the server protocol changed to HTTPS.
    All is fine until  I call method http_client->receive, at that point I get a return code of 1, http_communication_failure. 
    Your suggestions & contributions will be greatly appreciated.
    Cheers,
    Wouter.
    report zcreditcardtest .
    data: wf_user type string .
    data: wf_password type string .
    data: rlength type i,
          txlen type string  .
    data: http_client type ref to if_http_client .
    data: wf_string type string .
    data: wf_string1 type string .
    data: wf_proxy type string ,
          wf_port type string .
    selection-screen: begin of block a with frame .
    parameters: crcard(16) type c lower case default '4242424242424242',
                cvn(4)     type c lower case default '564',
                year(2)    type c lower case default '07',
                month(2)   type c lower case default '11',
                amount(10) type c lower case default '100.00',
                cukey(4)   type c lower case default 'AUD',
                order(10)  type c lower case default 'AB1322-refund'.
    selection-screen skip 1.
    parameters: user(50) lower case,
                password(50) lower case ,
                p_proxy(100) lower case default '' ,
                p_port(4) default ''.
    selection-screen: end of block a .
    at selection-screen output.
      loop at screen.
        if screen-name = 'PASSWORD'.
          screen-invisible = '1'.
          modify screen.
        endif.
      endloop.
    start-of-selection .
      clear wf_string .
      concatenate
      'order.type=capture&customer.username=SOMEUSER'
      '&customer.password=SOMEPASSWORD'
      '&customer.merchant=SOMEMERCHANT'
      '&card.PAN=' crcard
      '&card.CVN=' cvn
      '&card.expiryYear=' year
      '&card.expiryMonth=' month
      '&order.amount=' amount
      '&customer.orderNumber=' order
      '&card.currency=' cukey
      '&order.ECI=IVR'
      '&customer.captureOrderNumber=' order
      '&order.priority=1'
      '&message.end=null'
      into wf_string .
      break-point.
      clear :rlength , txlen .
      rlength = strlen( wf_string ) .
      move: rlength to txlen .
      clear: wf_proxy, wf_port .
      move: p_proxy to wf_proxy ,
            p_port to wf_port .
      call method cl_http_client=>create
        exporting
          host          = 'api.somewhere.com'
          service       = '80'
          scheme        = '2'                        "https
          proxy_host    = wf_proxy
          proxy_service = wf_port
        importing
          client        = http_client.
      http_client->propertytype_logon_popup = http_client->co_disabled.
      wf_user = user .
      wf_password = password .
    * proxy server authentication
      call method http_client->authenticate
        exporting
          proxy_authentication = 'X'
          username             = wf_user
          password             = wf_password.
      call method http_client->request->set_header_field
        exporting
          name  = '~request_method'
          value = 'POST'.
      call method http_client->request->set_header_field
        exporting
          name  = '~server_protocol'
          value = 'HTTPS/1.0'.
      call method http_client->request->set_header_field
        exporting
          name  = '~request_uri'
          value = '/post/CreditCardAPIReceiver'.
      call method http_client->request->set_header_field
        exporting
          name  = 'Content-Type'
          value = 'application/x-www-form-urlencoded; charset=UTF-8'.
      call method http_client->request->set_header_field
        exporting
          name  = 'Content-Length'
          value = txlen.
      call method http_client->request->set_header_field
        exporting
          name  = 'HOST'
          value = 'api.somewhere.com:80'.
      call method http_client->request->set_cdata
        exporting
          data   = wf_string
          offset = 0
          length = rlength.
      call method http_client->send
        exceptions
          http_communication_failure = 1
          http_invalid_state         = 2.
      call method http_client->receive
        exceptions
          http_communication_failure = 1
          http_invalid_state         = 2
          http_processing_failed     = 3.
      if sy-subrc <> 0.
        message e000(oo) with 'Processing failed !'.
      endif.
      clear wf_string1 .
      wf_string1 = http_client->response->get_cdata( ).
    * Further Processing of returned values would go here.

    Well, finally got this running !
    First of all I needed to download SAP Cryptographic Software and install it on the Web Application Server. Added some parameters to the profile, then set up some nodes in strust. Note 510007 describes the full process.
    I then installed the certifcate I needed by opening the website in internet explorer and exporting it to a CER file and then importing it into the SSL client (Anonymous). The blog from Thomas Yung, "BSP a Developer's Journal Part XIV - Consuming WebServices with ABAP" describes the process of exporting and importing certificates.
    I then had to start the HTTPS service on my NW 2004s ABAP preview edition SP11. I set this up for port 443.
    /osmicm --> GOTO --> SERVICES --> SERVICE --> CREATE
    Then finally, the program needed a few changes :
      call method cl_http_client=>create
        exporting
          host          = 'api.somewhere.com'
          service       = '443'                       " <<-----  443 NOT 80
          scheme        = '2'                        "https
          ssl_id        = 'ANONYM'              " <<----- SSL_ID Added
          proxy_host    = wf_proxy
          proxy_service = wf_port
        importing
          client        = http_client.
    and further in the program (thanks Andrew !) :
      call method http_client->request->set_header_field
        exporting
    *   name  = '~server_protocol'             " <<<--- DELETE
          name  = '~request_protocol'         " <<<-- INSERT must be request
          value = 'HTTPS/1.0'.
    and presto, we can now consume a https webservice via a POST method from within an ABAP program ! Nice.... Can I give myself 10 points ?

  • Redirect page with POST method in JSTL

    how to redirect page with POST method in JSTL.
    below is the code that i make, but the page redirected with GET method,
    so, the URL shown as http://localhost:8080/tes2/coba2.jsp?nama=saya
    how to hide the parameter, so it didn't show at the URL..??
    anybody help me..??
    server1 -> coba1.jsp
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <head>
    <title>coba1</title>
    </head>
    <body>
    <c:url value="http://localhost:8080/tes2/coba2.jsp" var="displayURL">
      <c:param name="nama" value="saya"/>
    </c:url>
    <c:redirect url="${displayURL}"/>
    </body>
    </html>server2->coba2.jsp
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
    <html>
    <head>
    <title>coba2</title>
    </head>
    <body>
    <c:forEach items="${param}" var="currentParam">
            <li><c:out value="${currentParam.key}" />
                = <c:out value="${currentParam.value}" /></li>
          </c:forEach>
    </body>
    </html>

    There are other two way communications methods as well. One such would be:
    Server1Page1: Take response with parameters.  Use HttpURLConnection to make a request to DataInputServlet
                  on Server2 and send the parameters there with a POST operation
    Server2DataInputServer: Takes request with data in it and starts a new session.  Puts the data into the session and
                  returns the session id to the requester
    Server1Page1: Reads the response from the DataInputServer (the session id) and generates a sendRedirect to
                  Server2's display page using the session id.  Server1Page1 is now done.
    Server2Page1: Gets a request from the client with the session id, and pulls the parameters out of the session.  Then
                  can continue as normal.Server2Page1 can also do a quick refresh to itself not using the session id as well, which will keep the URL visible by the client relatively clean.

  • HTML Post method.

    HI Experts,
    Here my scenario is Proxy to HTTP.
    My Receiver system need HTML Post method in place of XML file. Normally PI will send the XML but receiver system is expecting HTML POST method.
    For this i have to do in configuration.
    Receiver is expecting below format.
    <html>
    <head>
    <title>Authorize</title>
    </head>
    <body>
    <form action="https://developer.skipjackic.com/scripts/evolvcc.dll?AuthorizeAPI" method="post" >
         SerialNumber<input type="text" name="serialnumber" value="000014661324"><br />
         DeveloperSerialNumber<input type="text" name="developerserialnumber" value="464787130566"><br />
         Sjname<input type="text" name="sjname" value="TSYS Test"><br />
         street address<input type="text" name="streetaddress" value="2230 Park Ave"/><br />
         city<input type="text" name="city" value="Cincinnati"/><br />
         state<input type="text" name="state"  value="OH"/><br />
         zipcode<input type="text" name="zipcode"  value="45206"/><br />
         credit card account number<input type="text" name="accountnumber" value="4445999922225"/><br />
         CVV2<input type="text" name="CVV2" value=""><br>
         expiration month<input type="text" name="month" value="12"/><br />
         expiration year<input type="text" name="year" value="2012"/><br />
         amount<input type="text" name="transactionamount" value="1.00"/><br />
         order number<input type="text" name="ordernumber" value="123"/><br />
         phone<input type="text" name="shiptophone" value="8883688507"/>
      orderstring<input type="text" name="orderstring" value="Test1Test Item 13.001N||210.001N||310.001N||410.001N||510.001N~||" /><br />
         <br />
         <input type="submit" value="submit" />
    </form>
    </body>
    </html>
    Thank you
    Srinivas

    Hi Srinivas,
    I have the same issue with Form submit using Java HTTP adapter.
    It would be great if you can share your java mapping code or advise what should be the outcome of java mapping?
    Should the result of java mapping be some kind of XML payload or some html code ?
    Many Thanks,
    Kind Regards
    Ravi

  • Can i call a HTTP Post method in ABAP or XI?

    Hi All,
    Can you please let me know how to call a HTTP Post method in ABAP or XI?
    my HTTP Post is looks like (HTML form)
    <form action="http://111.111.111.1:8080/sample_url" method="POST">
    <table>
    <tr><th>applicationId</th><td><input type="text" name="applicationId" value="test"></td></tr>
    <tr><th>authCode</th><td><input type="text" name="authCode" value="test"></td></tr>
    <tr><th>message</th><td><input type="text" name="message" value="Hello"></td></tr>
    <!--<tr><th>version</th><td><input type="text" name="version" value="3.1"></td></tr> -->
    <tr><th>contractId</th><td><input type="text" name="contractId" value="test"></td></tr>
    <tr><th>receiverMobileNumber</th><td><input type="text" name="receiver" value="11111111111"></td></tr>
    <tr><td colspan="2"><input type="submit" name="send" value="send"></td></tr>
    </table>
    </form>
    I have a requirement to send a message to the above mention URL using the POST method.
    Please let me know the possibility of sending it from ABAP or XI adaptor.
    Thanks & Regards,
    Chaminda

    Hi Prateek,
    shoul we send the below code as the payload?
    <tr><th>applicationId</th><td><input type="text" name="applicationId" value="test"></td></tr>
    <tr><th>authCode</th><td><input type="text" name="authCode" value="test"></td></tr>
    <tr><th>message</th><td><input type="text" name="message" value="Hello"></td></tr>
    <!--<tr><th>version</th><td><input type="text" name="version" value="3.1"></td></tr> -->
    <tr><th>contractId</th><td><input type="text" name="contractId" value="test"></td></tr>
    <tr><th>receiverMobileNumber</th><td><input type="text" name="receiver" value="11111111111"></td></tr>
    Thanks.
    Chaminda

  • HTTP GET/POST method support in ESB/BPEL

    hi,
    I want to call HTTP URL using GET/POST method from ESB or BPEL. Can you please tell me how this can be achieved?
    Thanks,
    Vaibhav

    how would you direct the GET requests to one servlet and the POST requests to the other?
    Wouldn't they need to pass thru' yet another servlet to decide which is which (GET or POST), and redirect them accordingly?
    I would have both GET and POST handled by the same single-point-of-entry servlet. For example, not all data is sent to the server via a POST - you can send form data via a GET, using name/value pairs in the url.

  • POST method

    There are two procedures:
    Procedure ShowR(n1 Varchar2 Default Null) Is
    Begin
    Htp.P(N1);
    Owa_Util.Print_Cgi_Env;
    Exception When Others Then
    Htp.P('Error');
    End;
    Procedure PostMtd Is
    Begin
    Htp.HtmlOpen;
    Htp.P('');
    Htp.Script('function F() {fm.submit();}');
    Htp.BodyOpen;
    Htp.Formopen('/TST_IS/Dr_Test2.ShowR','POST');
    Htp.P('<input id="N1" name="N1" type="input" value="12345">');
    Htp.FormClose;
    Htp.P('<button onclick="F()">Send</button>');
    Htp.BodyClose;
    Htp.HtmlClose;
    Exception When Others Then
    Htp.P('Error');
    End;
    When I click button I get the following error:
    Dr_Test2.ShowR: SIGNATURE (parameter names) MISMATCH
    VARIABLES IN FORM NOT IN PROCEDURE:
    NON-DEFAULT VARIABLES IN PROCEDURE NOT IN FORM: N1
    DAD name: TST_IS
    PROCEDURE : Dr_Test2.ShowR
    USER : droglev
    URL : http://web.csv:80/pls/TST_IS/Dr_Test2.ShowR
    PARAMETERS :
    ============
    REQUEST_METHOD=GET
    QUERY_STRING=
    Why GET ???

    Ayman,
    Are you using Oracle HTML DB? If so, you don't need to worry about passing parameters and whether or not the POST method is being used. All this happens transparently. Please have a look at some of the tutorials linked from this page to get some ideas:
    http://www.oracle.com/technology/products/database/htmldb/index.html
    Sergio

Maybe you are looking for

  • Cisco 5520 ASA Port Forward to Endian Firewall VPN Question

    Hello, We have had a VPN operational on our Endian Firewall which uses OpenVPN server on port number 1194.  We recently purchased a Cisco 5520 ASA to put in front of our Endian Firewall and I am still hoping to use our current Endian Firewall VPN ser

  • How to reset the response status and response header

    Dear Masters Actually we are using NTLM Authentication process to get the system login id for our web application. The problem which I am getting is after running the NTLM Authentication Code I am not able to call the action class. It is telling 400

  • How to Tune the Transactions/ Z - reports /Progr..of High response time

    Dear friends, in <b>ST03</b> work load anlysis menu.... there are some z-reports, transactions, and some programmes are noticed contineously that they are taking the <b>max. response time</b> (and mostly >90%of time is  DB Time ). how to tune the abo

  • DIEN or TRAD material type for freight to be invoiced to customer?

    Hi guys, I am asked by QA to maintain Financial views (Accounting&Costing) for a material that is cost of freight that we want to invoice to the customer. They would like to register this material as TRAD, but my problem is that I then have to determ

  • Acrobat XI downloaded with different language

    I  mistakenly downloaded Adobe Acrobat Professional XI Pro with different language that I cannot understand. I want to change the language to English. Kindly note that the downloading was already finished. Please help.