Login or Register to Ask a Question and Join Our Community

Curl --cert to call a servlet

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Curl --cert to call a servlet
# 1  
Old 09-12-2014
Curl --cert to call a servlet


For one of our requirements, we are using curl command from a Linux box to call the servlet using PEM certificates type. Once servlet is trigger, the data will be loaded through servlet. If the servlet thread is completed successfully, then the control should return to Unix and based on the process status, I need to do some operations.

The problem is if I can check the code as ${?}, then return code as 0 for successful servlet triggered without any waiting for the thread to complete. I need the flow to be synchronous.

Is there any way that I can check the status of thread or if the process is completed then only I will my next operations.

The command I am using is
curl --cert ./cert.pem:user --cacert ./cert.pem --insecure --cert.-type PEM "URL"

I need the status if the servlet thread is completed without any exception.
The $? value only returns if any error during servlet call..

Please help.

Last edited by rbatte1; 09-12-2014 at 01:31 PM.. Reason: Added CODE tags, ICODE tags and capital letters
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

CurL command Rest API call with oauth 2.0 secutity error

Hi I need to get rates for different security form REST API . the API is oauth 2.0 secured. i need to use curl command to get json response from api . token URL - is HTTP data URL is - HTTPS when trigger my command from bash script it passing and failing intermittently with... (0 Replies)
Discussion started by: shobhit.working
0 Replies

2. Shell Programming and Scripting

Working web service call not working with curl

Hello, Newbie here, I have a perfectly well working web service call I can issue from chrome (PC Windows 10) and get the results I want (a dimmer being turned on in Fibaro Home Center 2 at level 40) I am not allowed to post urls but the below works with http and :// and... (3 Replies)
Discussion started by: abigbear
3 Replies

3. Red Hat

Cert Question

Good morning! Need a little advice as to which direction I should choose when it comes to certifications. My current position now is a RH Linux Administrator, and have been in the position for about 4 months. We are currently running RHEL 6.8 VM's, with no plans to moving to RHEL 7 no time soon... (0 Replies)
Discussion started by: spiveyb
0 Replies

4. Solaris

Looking for xsql servlet for Solaris 7

Am trying to find a copy of xsql servlet for solaris 7 but it seams its no longer available to download so am wondering if anyone has a copy backed up there can share with me? thanks :) (2 Replies)
Discussion started by: Wpgn
2 Replies

5. Shell Programming and Scripting

web service call: curl output to xsltproc input

I need to invoke a web service and extract what I need from the response using a combination of curl and xsltproc. However, any file-based parameters that must be supplied to both these programs must be from stdin and not actual files. At least with curl, it seems to think that I am supplying a... (3 Replies)
Discussion started by: webuser
3 Replies

6. Shell Programming and Scripting

Calling a servlet from schell script

Hi All, I have deployed a servlet on my server and the u r l is http:// localhost:9080/ ExampleApp / TestJackServlet This works fine when i launch this URL from the browser I am looking for shell script to hit the servlet or hit the URL without launching the browser session. I... (3 Replies)
Discussion started by: jack3698
3 Replies

7. Web Development

Servlet CLASSPATH for Apache

Hi All, I'm trying to play around with Java Servlets. I have a apache web server running on Solaris. And I'm trying to understand which file I add the JAVA CLASSPATH too so that when apache starts up it will have access to mysql interface libraries etc. Could some one please tell me? ... (0 Replies)
Discussion started by: fishman2001
0 Replies

8. UNIX for Dummies Questions & Answers

Reload Servlet in Tomcat

does anyone know how to reload servlet in tomcat? when do I actually reload it? when I modify any file in this server? (1 Reply)
Discussion started by: hamboy
1 Replies

9. UNIX for Dummies Questions & Answers

Solaris 8 Cert.

Does anyone have the question or a practice exam for the Solaris 8 Certification. If so email me at (1 Reply)
Discussion started by: aojmoj
1 Replies
Login or Register to Ask a Question

Featured Tech Videos