W3C home > Mailing lists > Public > xproc-dev@w3.org > February 2009

Re: http-request: error content

From: Florent Georges <fgeorges@gmail.com>
Date: Wed, 4 Feb 2009 16:20:09 +0100
Message-ID: <ebaca5bf0902040720x2c2c7786gf963f5d86fb199ed@mail.gmail.com>
To: Toman_Vojtech@emc.com
Cc: xproc-dev@w3.org

2009/2/4 ? wrote:

> I think so. From the p:http-request perspective, 404 is just a status
> code liky any other, and by default, the step does not fail. The
> response is therefore processed as usual, I think.

  Yes, that's consistent.

  I had a doubt because of the standard HTTP connection feature in
Java SE.  If you use it to send a POST without content to
http://tests.xproc.org/service/fixed-rdf, accessing the result content
stream throws an exception (telling the server responded with 411)
while the "error stream" does return the response body.

  But well, standard HTTP connection in Java SE is not known to be the
best in town...  I think this is more consistent to handle every
response the same way.

  Regards,

-- 
Florent Georges
http://www.fgeorges.org/
Received on Wednesday, 4 February 2009 15:48:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 4 February 2009 15:48:35 GMT