HttpWebResponse: only need headers

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I call a perl script on a UNIX CGI server and only need the header
information, not the entire body.

The perl script returns the headers, but then uses a second process to do
the bulk of the work.

I get the response back in less than a second with the information that I
need in the headers. If I open the stream, it takes a few minutes to get the
body.

If I don't open the stream or close the response, I'm done in less than one
second. If I don't close the response, I get all sorts of connection
problems because of the open streams.

How can I close the response and not wait until the second CGI process is
complete?

Thanks, Richard
 
if the perl script honors the HEAD request, you could try that. other than
that use a shorter timeout or the async routines.

-- bruce (sqlwork.com)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top