API Guide Home (Online version only) |

# HS_HTTPLibConst.h

Go to the documentation of this file.

    00001 /*
    00002     HS_HTTPLibConst.h
    00003     Copyright(c) 1996-2002 ACCESS CO., LTD.
    00004     All rights are reserved by ACCESS CO., LTD., whether the whole or
    00005     part of the source code including any modifications.
    00006 */
    00007 #ifndef HS_HTTPLIBCONST_H__
    00008 #define HS_HTTPLIBCONST_H__
    00009
    00010 /* constants */
    00011
    00012 /* const */
    00013 #define kHTTPLibTrapOpen sysLibTrapOpen
    00014 #define kHTTPLibTrapClose sysLibTrapClose
    00015 #define kHTTPLibTrapSleep sysLibTrapSleep
    00016 #define kHTTPLibTrapWake sysLibTrapWake
    00017 #define kHTTPLibTrapOpenCount  (sysLibTrapCustom + 0)
    00018 #define kHTTPLibTrapInitialize  (sysLibTrapCustom + 1)
    00019 #define kHTTPLibTrapFinalize  (sysLibTrapCustom + 2)
    00020 #define kHTTPLibTrapSSLClass  (sysLibTrapCustom + 3)
    00021 #define kHTTPLibTrapRegisterSSLClass  (sysLibTrapCustom + 4)
    00022 #define kHTTPLibTrapClearDNSCache  (sysLibTrapCustom + 5)
    00023 #define kHTTPLibTrapCloseAllKeepAlive  (sysLibTrapCustom + 6)
    00024 #define kHTTPLibTrapMakeProxy  (sysLibTrapCustom + 7)
    00025 #define kHTTPLibTrapSetHTTPPort  (sysLibTrapCustom + 8)
    00026 #define kHTTPLibTrapSetHTTPSPort  (sysLibTrapCustom + 9)
    00027 #define kHTTPLibTrapSetMaxRequestHeader  (sysLibTrapCustom + 10)
    00028 #define kHTTPLibTrapSetMaxRequestBody  (sysLibTrapCustom + 11)
    00029 #define kHTTPLibTrapSetProxy  (sysLibTrapCustom + 12)
    00030 #define kHTTPLibTrapSetUserAgent  (sysLibTrapCustom + 13)
    00031 #define kHTTPLibTrapSetDefaultHeaders  (sysLibTrapCustom + 14)
    00032 #define kHTTPLibTrapSetUseProxy  (sysLibTrapCustom + 15)
    00033 #define kHTTPLibTrapSetHTTP11OverProxy  (sysLibTrapCustom + 16)
    00034 #define kHTTPLibTrapSetSendReferer  (sysLibTrapCustom + 17)
    00035 #define kHTTPLibTrapSetSendProxyKeepAlive  (sysLibTrapCustom + 18)
    00036 #define kHTTPLibTrapSetSendCookie  (sysLibTrapCustom + 19)
    00037 #define kHTTPLibTrapSetConnectTimeOut  (sysLibTrapCustom + 20)
    00038 #define kHTTPLibTrapSetReqTimeOut  (sysLibTrapCustom + 21)
    00039 #define kHTTPLibTrapSetRspTimeOut  (sysLibTrapCustom + 22)
    00040 #define kHTTPLibTrapIsUseProxy  (sysLibTrapCustom + 23)
    00041 #define kHTTPLibTrapIsHTTP11OverProxy  (sysLibTrapCustom + 24)
    00042 #define kHTTPLibTrapIsSendReferer  (sysLibTrapCustom + 25)
    00043 #define kHTTPLibTrapIsSendCookie  (sysLibTrapCustom + 26)
    00044 #define kHTTPLibTrapStreamNew  (sysLibTrapCustom + 27)
    00045 #define kHTTPLibTrapStreamDelete  (sysLibTrapCustom + 28)
    00046 #define kHTTPLibTrapStreamCreateRequest  (sysLibTrapCustom + 29)
    00047 #define kHTTPLibTrapStreamCreateRequestWithChunkEncoding  (sysLibTrapCustom + 30)
    00048 #define kHTTPLibTrapStreamSendRequest  (sysLibTrapCustom + 31)
    00049 #define kHTTPLibTrapStreamSendRequestWithPostData  (sysLibTrapCustom + 32)
    00050 #define kHTTPLibTrapStreamSendRequestWithChunkEncoding  (sysLibTrapCustom + 33)
    00051 #define kHTTPLibTrapStreamReceiveResponse  (sysLibTrapCustom + 34)
    00052 #define kHTTPLibTrapStreamGetFlag  (sysLibTrapCustom + 35)
    00053 #define kHTTPLibTrapStreamClose  (sysLibTrapCustom + 36)
    00054 #define kHTTPLibTrapStreamIsHeaderReceived  (sysLibTrapCustom + 37)
    00055 #define kHTTPLibTrapStreamSetPostData  (sysLibTrapCustom + 38)
    00056 #define kHTTPLibTrapStreamGetScheme  (sysLibTrapCustom + 39)
    00057 #define kHTTPLibTrapStreamGetState  (sysLibTrapCustom + 40)
    00058 #define kHTTPLibTrapStreamGetStatusCode  (sysLibTrapCustom + 41)
    00059 #define kHTTPLibTrapStreamGetResponseHeaderLength  (sysLibTrapCustom + 42)
    00060 #define kHTTPLibTrapStreamGetResponseHeader  (sysLibTrapCustom + 43)
    00061 #define kHTTPLibTrapStreamGetContentLength  (sysLibTrapCustom + 44)
    00062 #define kHTTPLibTrapStreamGetEntityLength  (sysLibTrapCustom + 45)
    00063 #define kHTTPLibTrapStreamAddHeaderLine  (sysLibTrapCustom + 46)
    00064 #define kHTTPLibTrapStreamAddHeader  (sysLibTrapCustom + 47)
    00065 #define kHTTPLibTrapStreamGetHeader  (sysLibTrapCustom + 48)
    00066 #define kHTTPLibTrapMakeCertList  (sysLibTrapCustom + 49)
    00067 #define kHTTPLibTrapHeaderSplitByX  (sysLibTrapCustom + 50)
    00068 #define kHTTPLibTrapAuthInfoTidy  (sysLibTrapCustom + 51)
    00069 #define kHTTPLibTrapSetUserPass  (sysLibTrapCustom + 52)
    00070 #define kHTTPLibTrapFindAuthInfo  (sysLibTrapCustom + 53)
    00071 #define kHTTPLibTrapMakeAuthInfo  (sysLibTrapCustom + 54)
    00072 #define kHTTPLibTrapAuthInfoUser  (sysLibTrapCustom + 55)
    00073 #define kHTTPLibTrapAuthInfoPass  (sysLibTrapCustom + 56)
    00074 #define kHTTPLibTrapAuthInfoRealm  (sysLibTrapCustom + 57)
    00075 #define kHTTPLibTrapAuthCacheGetChallengeTokenSS  (sysLibTrapCustom + 58)
    00076 #define kHTTPLibTrapSetCookieMode  (sysLibTrapCustom + 59)
    00077 #define kHTTPLibTrapSetCookieMax  (sysLibTrapCustom + 60)
    00078 #define kHTTPLibTrapSetCookie  (sysLibTrapCustom + 61)
    00079 #define kHTTPLibTrapMakeCookiesString  (sysLibTrapCustom + 62)
    00080 #define kHTTPLibTrapSaveCookiesEntries  (sysLibTrapCustom + 63)
    00081 #define kHTTPLibTrapLoadCookiesEntries  (sysLibTrapCustom + 64)
    00082 #define kHTTPLibTrapCookieMakeEmpty  (sysLibTrapCustom + 65)
    00083 #define kHTTPLibTrapSetDNSMaxRetry  (sysLibTrapCustom + 66)
    00084 #define kHTTPLibTrapSetDNSRetryInterval  (sysLibTrapCustom + 67)
    00085 #define kHTTPLibTrapSetSSLVersionFlag  (sysLibTrapCustom + 68)
    00086 #define kHTTPLibTrapSSLTimeout  (sysLibTrapCustom + 69)
    00087 #define kHTTPLibTrapSSLOpenCertDB  (sysLibTrapCustom + 70)
    00088 #define kHTTPLibTrapSSLCloseCertDB  (sysLibTrapCustom + 71)
    00089 #define kHTTPLibTrapCertListNew  (sysLibTrapCustom + 72)
    00090 #define kHTTPLibTrapCertListDelete  (sysLibTrapCustom + 73)
    00091 #define kHTTPLibTrapCertListClone  (sysLibTrapCustom + 74)
    00092 #define kHTTPLibTrapCertListLock  (sysLibTrapCustom + 75)
    00093 #define kHTTPLibTrapCertListUnlock  (sysLibTrapCustom + 76)
    00094 #define kHTTPLibTrapCertListType  (sysLibTrapCustom + 77)
    00095 #define kHTTPLibTrapCertListLength  (sysLibTrapCustom + 78)
    00096 #define kHTTPLibTrapCertListBeginDecode  (sysLibTrapCustom + 79)
    00097 #define kHTTPLibTrapCertListEndDecode  (sysLibTrapCustom + 80)
    00098 #define kHTTPLibTrapCertListImportCert  (sysLibTrapCustom + 81)
    00099 #define kHTTPLibTrapCertPeekVersion  (sysLibTrapCustom + 82)
    00100 #define kHTTPLibTrapCertPeekSerialNumber  (sysLibTrapCustom + 83)
    00101 #define kHTTPLibTrapCertPeekSignAlgo  (sysLibTrapCustom + 84)
    00102 #define kHTTPLibTrapCertBeginPeekIssuerRDN  (sysLibTrapCustom + 85)
    00103 #define kHTTPLibTrapCertPeekIssuerRDN  (sysLibTrapCustom + 86)
    00104 #define kHTTPLibTrapCertPeekIssuerRDNStrType  (sysLibTrapCustom + 87)
    00105 #define kHTTPLibTrapCert_EndPeekIssuerRDN  (sysLibTrapCustom + 88)
    00106 #define kHTTPLibTrapCertBeginPeekSubjectRDN  (sysLibTrapCustom + 89)
    00107 #define kHTTPLibTrapCertPeekSubjectRDN  (sysLibTrapCustom + 90)
    00108 #define kHTTPLibTrapCertPeekSubjectRDNStrType  (sysLibTrapCustom + 91)
    00109 #define kHTTPLibTrapCert_EndPeekSubjectRDN  (sysLibTrapCustom + 92)
    00110 #define kHTTPLibTrapCert_PeekValidityStart  (sysLibTrapCustom + 93)
    00111 #define kHTTPLibTrapCert_PeekValidityEnd  (sysLibTrapCustom + 94)
    00112 #define kHTTPLibTrapCert_PeekRSAPublicKeyBits  (sysLibTrapCustom + 95)
    00113 #define kHTTPLibTrapClientCertListNew  (sysLibTrapCustom + 96)
    00114 #define kHTTPLibTrapClientCertListClone  (sysLibTrapCustom + 97)
    00115 #define kHTTPLibTrapClientCertListDelete  (sysLibTrapCustom + 98)
    00116 #define kHTTPLibTrapClientCertListLength  (sysLibTrapCustom + 99)
    00117 #define kHTTPLibTrapClientCertListIsValid  (sysLibTrapCustom + 100)
    00118 #define kHTTPLibTrapClientCertListSetValid  (sysLibTrapCustom + 101)
    00119 #define kHTTPLibTrapSetSSLServerCertConfirmProc  (sysLibTrapCustom + 102)
    00120 #define kHTTPLibTrapServerCertConfirm  (sysLibTrapCustom + 103)
    00121 #define kHTTPLibTrapSetSSLClientCertSelectProc  (sysLibTrapCustom + 104)
    00122 #define kHTTPLibTrapClientCertSelect  (sysLibTrapCustom + 105)
    00123 #define kHTTPLibTrapSetNetLibProc  (sysLibTrapCustom + 106)
    00124 #define kHTTPLibTrapDataHandle_Length  (sysLibTrapCustom + 107)
    00125 #define kHTTPLibTrapDataHandle_Lock  (sysLibTrapCustom + 108)
    00126 #define kHTTPLibTrapDataHandle_Unlock  (sysLibTrapCustom + 109)
    00127 #define kHTTPLibTrapDataHandle_Delete  (sysLibTrapCustom + 110)
    00128 #define kHTTPLibTrapVHandle_Length  (sysLibTrapCustom + 111)
    00129 #define kHTTPLibTrapVHandle_Lock  (sysLibTrapCustom + 112)
    00130 #define kHTTPLibTrapVHandle_Unlock  (sysLibTrapCustom + 113)
    00131 #define kHTTPLibTrapVHandle_Delete  (sysLibTrapCustom + 114)
    00132 #define kHTTPLibTrapString_Length  (sysLibTrapCustom + 115)
    00133 #define kHTTPLibTrapStringNew  (sysLibTrapCustom + 116)
    00134 #define kHTTPLibTrapString_Lock  (sysLibTrapCustom + 117)
    00135 #define kHTTPLibTrapString_Unlock  (sysLibTrapCustom + 118)
    00136 #define kHTTPLibTrapString_Delete  (sysLibTrapCustom + 119)
    00137 #define kHTTPLibTrapFixedString_Length  (sysLibTrapCustom + 120)
    00138 #define kHTTPLibTrapFixedStringNew  (sysLibTrapCustom + 121)
    00139 #define kHTTPLibTrapFixedString_Lock  (sysLibTrapCustom + 122)
    00140 #define kHTTPLibTrapFixedString_Unlock  (sysLibTrapCustom + 123)
    00141 #define kHTTPLibTrapFixedString_Delete  (sysLibTrapCustom + 124)
    00142 #define kHTTPLibTrapURLString_Length  (sysLibTrapCustom + 125)
    00143 #define kHTTPLibTrapURLStringNew  (sysLibTrapCustom + 126)
    00144 #define kHTTPLibTrapURLString_Lock  (sysLibTrapCustom + 127)
    00145 #define kHTTPLibTrapURLString_Unlock  (sysLibTrapCustom + 128)
    00146 #define kHTTPLibTrapURLString_Delete  (sysLibTrapCustom + 129)
    00147 #define kHTTPLibTrapCertListGetCipherInfo  (sysLibTrapCustom + 130)
    00148 #define kHTTPLibTrapSetCookieX  (sysLibTrapCustom + 131)
    00149 #define kHTTPLibTrapSetTunnelingCallback (sysLibTrapCustom + 132)
    00150 #define kHTTPLibTrapSetMaxKeepAliveTimeout (sysLibTrapCustom + 133)
    00151 #define kHTTPLibTrapStreamResumeTimer (sysLibTrapCustom + 134)
    00152 #define kHTTPLibTrapStreamSuspendTimer (sysLibTrapCustom + 135)
    00153 #define kHTTPLibTrapStreamGetRequestSent (sysLibTrapCustom + 136)
    00154 #define kHTTPLibTrapStreamGetHeaderWithOffset (sysLibTrapCustom + 137)
    00155 #define kHTTPLibTrapSetUserPassX (sysLibTrapCustom + 138)
    00156 #define kHTTPLibTrapFindAuthCandidate (sysLibTrapCustom + 139)
    00157 #define kHTTPLibTrapSetWakeUpCallback (sysLibTrapCustom + 140)
    00158 #define kHTTPLibTrapSetUseragentSelectionRule (sysLibTrapCustom + 141)
    00159
    00160
    00161 #define httpStreamRead      0x00000001
    00162 #define httpStreamWrite     0x00000002
    00163 #define httpStreamReadWrite (httpStreamRead|httpStreamWrite)
    00164
    00165 enum httpAuthType_ {
    00166     httpAuthTypeNone = -1,
    00167     httpAuthTypeBasic = 0,
    00168     httpAuthTypeDigest,
    00169     httpAuthTypeTypes
    00170 };
    00171 typedef enum httpAuthType_ httpAuthTypeEnum;
    00172
    00173 enum httpAuthTarget_ {
    00174     httpAuthTargetPage = 0,
    00175     httpAuthTargetProxy,
    00176     httpAuthTargetTargets
    00177 };
    00178 typedef enum httpAuthTarget_ httpAuthTargetEnum;
    00179
    00180 enum httpAuthPath_ {
    00181     httpAuthPathSame,
    00182     httpAuthPathAncestor,
    00183     httpAuthPathDescendant,
    00184     httpAuthPathCousin
    00185 };
    00186 typedef enum httpAuthPath_ httpAuthPathEnum;
    00187
    00188 #define httpStreamTextCRLF              "\015\012"
    00189 #define httpStreamTextCRLFCRLF          "\015\012\015\012"
    00190 #define httpStreamTextCRCR              "\015\015"
    00191 #define httpStreamTextLFLF              "\012\012"
    00192
    00193 /* errors */
    00194 enum httpError_ {
    00195
    00196     httpErrorOK             = 0,
    00197     httpErrorGeneric        = -1,
    00198     httpErrorWouldBlock     = -2,
    00199     httpErrorIOSleep        = -3,
    00200     httpErrorNoMem          = -6,
    00201     httpErrorInval          = -8,
    00202
    00203     httpErrorDNSInval       = -200,
    00204     httpErrorDNSNoServer,
    00205     httpErrorDNSTimedout,
    00206     httpErrorDNSNotFound,
    00207     httpErrorTCPOpen,
    00208     httpErrorTCPConnect,
    00209     httpErrorTCPRead,
    00210     httpErrorTCPWrite,
    00211     httpErrorSSLConnect,
    00212     httpErrorSSLHandShake,
    00213     httpErrorSSLRead,
    00214     httpErrorSSLWrite,
    00215     httpErrorReqTimedout,
    00216     httpErrorRspTimedout,
    00217     httpErrorCacheNone,
    00218     httpErrorCacheExpire,
    00219     httpErrorAuthUnknown,
    00220     httpErrorAuthNoHeader,
    00221     httpErrorAuthFormat,
    00222     httpErrorRedirectFormat,
    00223     httpErrorRedirectCanceled,
    00224     httpErrorReqHeaderSizeOver, /* method GET */
    00225     httpErrorReqBodySizeOver, /* method POST */
    00226     httpErrorRspHeaderSizeOver,
    00227     httpErrorReqTooManyContinue,
    00228     httpErrorTLSIntolerant
    00229 };
    00230 typedef enum httpError_ httpErrorEnum;
    00231
    00232 /* header type */
    00233 enum httpHeaderType_ {
    00234     httpHeaderTypeGeneral = 0,
    00235     httpHeaderTypeRequest,
    00236     httpHeaderTypeResponse,
    00237     httpHeaderTypeEntity,
    00238     httpHeaderTypeOther,
    00239     httpHeaderTypeTypes
    00240 };
    00241 typedef enum httpHeaderType_ httpHeaderTypeEnum;
    00242
    00243 /* constant for http stream state */
    00244 enum httpStreamState_ {
    00245     httpStreamStateNew = 0,
    00246     httpStreamStateDormant,
    00247     httpStreamStateReqCreated,
    00248     httpStreamStateReqResolve,
    00249     httpStreamStateReqResolving,
    00250     httpStreamStateReqOpen,
    00251     httpStreamStateReqConnect,
    00252     httpStreamStateReqConnecting,
    00253     httpStreamStateReqProxyConnect,
    00254     httpStreamStateReqProxyConnecting,
    00255     httpStreamStateReqSSLHandShaking,
    00256     httpStreamStateReqSSLHandShaked,
    00257     httpStreamStateReqSending,
    00258     httpStreamStateReqSent,
    00259     httpStreamStateRspHeaderWaiting,
    00260     httpStreamStateRspContinue,
    00261     httpStreamStateRspHeaderReceiving,
    00262     httpStreamStateRspHeaderReceived,
    00263     httpStreamStateRspEntityReceiving,
    00264     httpStreamStateRspEntityReceived,
    00265     httpStreamStateObsolete,
    00266     httpStreamStateDelete,
    00267     httpStreamStateStates
    00268 };
    00269 typedef enum httpStreamState_ httpStreamStateEnum;
    00270
    00271 /* constant for http stream protocol scheme */
    00272 enum httpScheme_ {
    00273     httpSchemeHTTP = 0,
    00274     httpSchemeHTTPS,
    00275     httpSchemeSchemes
    00276 };
    00277 typedef enum httpScheme_ httpSchemeEnum;
    00278
    00279 /* constant for http method */
    00280 enum httpMethod_ {
    00281     httpMethodOPTIONS = 0,
    00282     httpMethodGET,
    00283     httpMethodHEAD,
    00284     httpMethodPOST,
    00285     httpMethodPUT,
    00286     httpMethodDELETE,
    00287     httpMethodTRACE,
    00288     httpMethodCONNECT,
    00289     httpMethodMethods
    00290 };
    00291 typedef enum httpMethod_ httpMethodEnum;
    00292
    00293 /* constant for http version */
    00294 enum httpVersion_ {
    00295     httpVersion_0_9 = 0,
    00296     httpVersion_1_0,
    00297     httpVersion_1_1,
    00298     httpVersionVersions
    00299 };
    00300 typedef enum httpVersion_ httpVersionEnum;
    00301
    00302 /* constant for http status code */
    00303 enum httpStatusCode_ {
    00304     httpStatusCodeContinue                          = 100,
    00305     httpStatusCodeSwitchingProtocols                = 101,
    00306     httpStatusCodeOK                                = 200,
    00307     httpStatusCodeCreated                           = 201,
    00308     httpStatusCodeAccepted                          = 202,
    00309     httpStatusCodeNonAuthoritativeInformation       = 203,
    00310     httpStatusCodeNoContent                         = 204,
    00311     httpStatusCodeResetContent                      = 205,
    00312     httpStatusCodePartialContent                    = 206,
    00313     httpStatusCodeMultipleChoices                   = 300,
    00314     httpStatusCodeMovedPermanently                  = 301,
    00315     httpStatusCodeFound                             = 302,
    00316     httpStatusCodeSeeOther                          = 303,
    00317     httpStatusCodeNotModified                       = 304,
    00318     httpStatusCodeUseProxy                          = 305,
    00319     httpStatusCodeTemporaryRedirect                 = 307,
    00320     httpStatusCodeBadRequest                        = 400,
    00321     httpStatusCodeUnauthorized                      = 401,
    00322     httpStatusCodePaymentRequired                   = 402,
    00323     httpStatusCodeForbidden                         = 403,
    00324     httpStatusCodeNotFound                          = 404,
    00325     httpStatusCodeMethodNotAllowed                  = 405,
    00326     httpStatusCodeNotAcceptable                     = 406,
    00327     httpStatusCodeProxyAuthenticationRequired       = 407,
    00328     httpStatusCodeRequestTimeout                    = 408,
    00329     httpStatusCodeConflict                          = 409,
    00330     httpStatusCodeGone                              = 410,
    00331     httpStatusCodeLengthRequired                    = 411,
    00332     httpStatusCodePreconditionFailed                = 412,
    00333     httpStatusCodeRequestEntityTooLarge             = 413,
    00334     httpStatusCodeRequestURITooLarge                = 414,
    00335     httpStatusCodeUnsupportedMediaType              = 415,
    00336     httpStatusCodeRequestedRangeNotSatisfiable      = 416,
    00337     httpStatusCodeExpectationFailed                 = 417,
    00338     httpStatusCodeInternalServerError               = 500,
    00339     httpStatusCodeNotImplemented                    = 501,
    00340     httpStatusCodeBadGateway                        = 502,
    00341     httpStatusCodeServiceUnavailable                = 503,
    00342     httpStatusCodeGatewayTimeout                    = 504,
    00343     httpStatusCodeHTTPVersionNotSupported           = 505
    00344 };
    00345 typedef enum httpStatusCode_ httpStatusCodeEnum;
    00346
    00347 /* constant for cookie mode */
    00348 enum httpCookie_ {
    00349     httpCookieNotifyBeforeSet = 0,
    00350     httpCookieAlwaysSet,
    00351     httpCookieNeverSet
    00352 };
    00353 typedef enum httpCookie_ httpCookieEnum;
    00354
    00355 /* string encoding in post */
    00356 #define httpPostURLENCODED      0x00000001
    00357 #define httpPostPLAINTEXT       0x00000002
    00358 #define httpPostMULTIPART       0x00000004
    00359
    00360 enum httpHeaderID_ {
    00361     httpHeaderIDCacheControl,
    00362     httpHeaderIDConnection,
    00363     httpHeaderIDDate,
    00364     httpHeaderIDPragma,
    00365     httpHeaderIDTrailer,
    00366     httpHeaderIDTransferEncoding,
    00367     httpHeaderIDUpgrade,
    00368     httpHeaderIDVia,
    00369     httpHeaderIDWarning,
    00370     httpHeaderIDKeepAlive,
    00371     httpHeaderIDProxyConnection,
    00372     httpHeaderIDAccept,
    00373     httpHeaderIDAcceptCharset,
    00374     httpHeaderIDAcceptEncoding,
    00375     httpHeaderIDAcceptLanguage,
    00376     httpHeaderIDAuthorization,
    00377     httpHeaderIDExpect,
    00378     httpHeaderIDFrom,
    00379     httpHeaderIDHost,
    00380     httpHeaderIDIfMatch,
    00381     httpHeaderIDIfModifiedSince,
    00382     httpHeaderIDIfNoneMatch,
    00383     httpHeaderIDIfRange,
    00384     httpHeaderIDIfUnmodifiedSince,
    00385     httpHeaderIDMaxForwards,
    00386     httpHeaderIDProxyAuthorization,
    00387     httpHeaderIDRange,
    00388     httpHeaderIDReferer,
    00389     httpHeaderIDTE,
    00390     httpHeaderIDUserAgent,
    00391     httpHeaderIDCookie,
    00392     httpHeaderIDAcceptRanges,
    00393     httpHeaderIDAge,
    00394     httpHeaderIDETag,
    00395     httpHeaderIDLocation,
    00396     httpHeaderIDProxyAuthenticate,
    00397     httpHeaderIDRetryAfter,
    00398     httpHeaderIDServer,
    00399     httpHeaderIDVary,
    00400     httpHeaderIDWWWAuthenticate,
    00401     httpHeaderIDSetCookie,
    00402     httpHeaderIDAuthenticationInfo,
    00403     httpHeaderIDProxyAuthenticationInfo,
    00404     httpHeaderIDAllow,
    00405     httpHeaderIDContentEncoding,
    00406     httpHeaderIDContentDisposition,
    00407     httpHeaderIDContentLanguage,
    00408     httpHeaderIDContentLength,
    00409     httpHeaderIDContentLocation,
    00410     httpHeaderIDContentMD5,
    00411     httpHeaderIDContentRange,
    00412     httpHeaderIDContentType,
    00413     httpHeaderIDExpires,
    00414     httpHeaderIDLastModified,
    00415     httpHeaderIDRefresh,
    00416     httpHeaderIDENUMS
    00417 };
    00418 typedef enum httpHeaderID_ httpHeaderIDEnum;
    00419
    00420
    00421 /* SSL Version */
    00422 #define httpSSLFlagConnV2                   0x00000001  /* connect by v2 protocol */
    00423 #define httpSSLFlagConnV3                   0x00000002  /* connect by v3 protocol */
    00424 #define httpSSLFlagConnTLS                  0x00000004  /* connect by TLS(v3.1) protocol */
    00425 #define httpSSLFlagConnV2V3                 (httpSSLFlagConnV2 | httpSSLFlagConnV3)
    00426 #define httpSSLFlagConnV2TLS                (httpSSLFlagConnV2 | httpSSLFlagConnTLS)
    00427 #define httpSSLFlagConnV3TLS                (httpSSLFlagConnV3 | httpSSLFlagConnTLS)
    00428 #define httpSSLFlagConnV2V3TLS              (httpSSLFlagConnV2 | httpSSLFlagConnV3 | httpSSLFlagConnTLS)
    00429
    00430 enum
    00431 {
    00432     httpCookieClearAtFinalize,
    00433     httpCookieClearAll,
    00434     httpCookieClearSessionCookiesOnly
    00435 };
    00436
    00437 enum {
    00438     httpDNSModeIPV4Only = 0
    00439 };
    00440
    00441 enum {
    00442     httpCetListTypeUnknown = 0,
    00443     httpCetListTypeServer,
    00444     httpCetListTypeClient,
    00445     httpCetListTypeBrowser,
    00446     httpCetListTypeTypes
    00447 };
    00448
    00449 #endif /* HS_HTTPLIBCONST_H__ */
    00450

Top | Palm Developer Network © 2004-2008, Palm, Inc. All rights reserved. Generated on Fri Jun 13 10:06:53 2008 for Palm API Guide