Dell DX6004S DX Object Storage Application Guide - Page 80

Appendix B. Sample Code and Client Library Behaviors with 100, Continue

Page 80 highlights

Appendix B. Sample Code and Client Library Behaviors with 100Continue The best practice for integrators is to use the DX Storage Software Development Kit, which includes fully implementations of the SCSP protocol in multiple languages. Integrators not using the Software Development Kit should be aware of the following inconsistencies with 100-Continue: Python httplib. The Python httplib does not alter its behavior in the presence of a 100-continue header, and will send the complete request body without waiting for the continue response from the server. The Python SDK does not use httplib and does handle 100-continue headers correctly. C#/.NET WebClient/HttpWebRequest. HttpWebRequest does not alter its behavior in the presence of a 100-continue header, and sends the complete request body without waiting for the continue response from the server. Your client application is informed when a 100-continue header is encountered. Java Apache Commons http client (org.apache.commons.httpclient). The Apache commons http client does handle 100-continue correctly after setting the POST method parameter as in the code snippet below: method.getParams().setParameter(HttpMethodParams.USE_EXPECT_CONTINUE, new Boolean(true) ); Copyright © 2010 Caringo, Inc. All rights reserved 75 Version 5.0 December 2010

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81

Copyright © 2010 Caringo, Inc.
All rights reserved
75
Version 5.0
December 2010
Appendix B. Sample Code and Client Library Behaviors with 100-
Continue
The best practice for integrators is to use the DX Storage Software Development Kit, which includes
fully implementations of the SCSP protocol in multiple languages.
Integrators not using the Software Development Kit should be aware of the following inconsistencies
with 100-Continue:
Python httplib.
The Python httplib does not alter its behavior in the presence of a 100-continue
header, and will send the complete request body without waiting for the continue response from the
server. The Python SDK does not use httplib and does handle 100-continue headers correctly.
C#/.NET WebClient/HttpWebRequest.
HttpWebRequest does not alter its behavior in the presence
of a 100-continue header, and sends the complete request body without waiting for the continue
response from the server. Your client application is informed when a 100-continue header is
encountered.
Java Apache Commons http client (org.apache.commons.httpclient).
The Apache commons
http client does handle 100-continue correctly after setting the POST method parameter as in the
code snippet below:
method.getParams().setParameter(HttpMethodParams.USE_EXPECT_CONTINUE, new
Boolean(true) );