Is there a way to do a POST with an "Expect:" header in Restlet?  To use
Expect you construct your POST except you leave off the body and stick in an
"Expect: 100-continue".  If the server is happy to receive your POST he
returns status 100 and the client sends the normal POST with content.  This
can be used to prevent trying to send huge amounts of data over the network
if the server can't really handle it.

But I can't find a way to construct a POST where I can set the
Content-Length header myself.  It seems to only calculate it based on the
size of the body, which defeats the point of the "Expect" header.

(As a side note, I first was tinkering with this using the Apache client and
it was eating the Expect header somewhere along the way.  Switching to the
Net client let the Expect header go through [with a complaint from Restlet]
and then I ran into the problem described above.)

-- 
Steve Crooks | Senior Technology Architect | Medical Informatics (CMII) |
Cerner Corporation | (816)201-2498 | [EMAIL PROTECTED] |
http://www.cerner.com


----------------------------------------------------------------------
CONFIDENTIALITY NOTICE This message and any included attachments are from 
Cerner Corporation and are intended only for the addressee. The information 
contained in this message is confidential and may constitute inside or 
non-public information under international, federal, or state securities laws. 
Unauthorized forwarding, printing, copying, distribution, or use of such 
information is strictly prohibited and may be unlawful. If you are not the 
addressee, please promptly delete this message and notify the sender of the 
delivery error by e-mail or you may call Cerner's corporate offices in Kansas 
City, Missouri, U.S.A at (+1) (816)221-1024.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to