cURL / Mailing Lists / curl-users / Single Mail


RE: curl_easy_perform blocks when trying to read a response Header

From: Ambarish Mitra <>
Date: Mon, 10 Nov 2008 14:53:25 +0530

> I have a running test Java servlet (deployed on Tomcat), which returns
> a response code of 200.

It is certainly running, but maybe not in the direction you want.

> protected void doGet(HttpServletRequest request, HttpServletResponse
> response) throws ServletException, IOException
> {
> System.out.println("doget - start ");

The problem is that you're printing to the standard output, but the
Servlet API doesn't work that way. Take a look at the documentation here
to find out how you're supposed to use this API.

Hi Micheal, Thanks for your response.
Actually, for servlets deployed on tomcat, the out.println prints the log
mesg to catalina.out.
However, the issue here is that even when the doGet completes, the
curl_easy_perform keeps blocking.

I tried some other http client, which completes after the tomcat sends the

I will try my question in the curl library mailing list, as Daniel

Thanks anyway.

This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails.
List admin:
Received on 2008-11-10