cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-users Mailing List Archives

RE: curl_easy_perform blocks when trying to read a response Header

From: Ambarish Mitra <ambarish_mitra_at_persistent.co.in>
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.

http://java.sun.com/products/servlet/docs.html
http://www.novocode.com/doc/servlet-essentials/
http://www.novocode.com/doc/servlet-essentials/chapter2a.html#ch_2_1

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
reponse.

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

Thanks anyway.

DISCLAIMER
==========
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: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2008-11-10

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET