In the ClientAbortMethod.java example, there's a call made to entity.getContentLength()

Previously I was getting the first content-length header and parsing that to extract the length, but I switched to using this call.

However my integration tests then all started failing, as this call would return -1 in all the cases I walked through in the debugger.

So two questions:

1. When would it make sense to use this call?

2. Is the sample code wrong, or is there something I'm doing in my code that could cause the -1 result in all cases?

Thanks,

-- Ken

--------------------------
Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-210-6378


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to