Issuing HTTPS POST in Process

Avatar

Avatar
Validate 1
Level 7
kc
Level 7

Likes

0 likes

Total Posts

402 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 7
kc
Level 7

Likes

0 likes

Total Posts

402 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
kc
Level 7

16-09-2008

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



Sincerely

Kim

Replies

Avatar

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile
Jasmin_Charbonn
Level 10

17-09-2008

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:



try{

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

String url = sURL;



SimpleHttpConnectionManager connManager = new SimpleHttpConnectionManager();

HttpConnectionManagerParams connManagerParams = new HttpConnectionManagerParams();

connManagerParams.setConnectionTimeout(8000);

connManager.setParams(connManagerParams);



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());

postMethod.setRequestEntity(re);

postMethod.setRequestHeader("Content-type",sContentType);



int statusCode1 = client.executeMethod(postMethod);



System.out.println("statusLine>>>" + postMethod.getStatusLine());

postMethod.releaseConnection();

}

catch(Exception e){

System.out.println("***************" + e.getLocalizedMessage());

}

Avatar

Avatar
Validate 1
Level 7
kc
Level 7

Likes

0 likes

Total Posts

402 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 7
kc
Level 7

Likes

0 likes

Total Posts

402 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
kc
Level 7

18-09-2008

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?



Sincerely

Kim

Avatar

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile

Avatar
Coach
Level 10
Jasmin_Charbonn
Level 10

Likes

149 likes

Total Posts

2,154 posts

Correct reply

97 solutions
Top badges earned
Coach
Give Back 1000
Give back 900
Give Back 800
Give back 600
View profile
Jasmin_Charbonn
Level 10

19-09-2008

Avatar

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Boost 5
Level 9
HowardTreisman
Level 9

Likes

5 likes

Total Posts

936 posts

Correct reply

9 solutions
Top badges earned
Boost 5
Boost 3
Boost 1
Affirm 5
Affirm 3
View profile
HowardTreisman
Level 9

22-09-2008

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:

http://avoka.dnsalias.com/confluence/display/Public/HTTP+Sender+DSC



Download here:

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



Howard