4 Replies Latest reply on Sep 22, 2008 5:08 AM by HowardTreisman

    Issuing HTTPS POST in Process

    kc@dafolo.dk Level 1
      Hi all,

      Is it possible to create and issue a normal HTTPS POST operation in a process, without the user has to click anything?

      If so, can you give a hint to how it is done?

      Thanks in advance

        • 1. Re: Issuing HTTPS POST in Process
          Jasmin Charbonneau Level 4
          You can build a custom component to do that. I've built something similar in the past. You're really using Java to do the call and wrap it in a custom component so it can be used within LC.

          This is the code I used in my custom component:

          //String url = "https://jasserver:8443/TestPost/GetRequest.jsp";
          String url = sURL;

          SimpleHttpConnectionManager connManager = new SimpleHttpConnectionManager();
          HttpConnectionManagerParams connManagerParams = new HttpConnectionManagerParams();

          HttpClient client = new HttpClient(connManager);
          PostMethod postMethod = new PostMethod(url);

          // Send any file as the body of the POST request
          sContentType = content.getContentType();

          System.out.println("Document Length = " + content.length());
          System.out.println("Document content type = " + content.getContentType());

          InputStreamRequestEntity re = new InputStreamRequestEntity(content.getInputStream());

          int statusCode1 = client.executeMethod(postMethod);

          System.out.println("statusLine>>>" + postMethod.getStatusLine());
          catch(Exception e){
          System.out.println("***************" + e.getLocalizedMessage());
          • 2. Re: Issuing HTTPS POST in Process
            kc@dafolo.dk Level 1
            That sounds great - can you help me get started with developing my own custom component, is there any documentation for this I can read, or anything else you can recommend?

            • 3. Re: Issuing HTTPS POST in Process
              Jasmin Charbonneau Level 4
              Try this link:


              • 4. Re: Issuing HTTPS POST in Process
                HowardTreisman Level 1
                You can download and try our Http component.
                I'm not trying to dissuade you from building your own, but ours has been developed over several years, and has got a lot of features and refinement.

                Details here:

                Download here:
                http://www.avoka.com/apps/checkcookie?qpac=y&qpac_code=avokaESComponents&location=%2Fapps% 2Fqpacdownload