2 * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
20 // netparameters - ParameterSource keys for network protocol parameters
22 #ifndef _H_NETPARAMETERS
23 #define _H_NETPARAMETERS
25 #include "parameters.h"
33 // generic (potentially applies to all protocols)
34 kNetworkGenericUsername
= PARAMKEY(0x00001,string
), // username for simple auth
35 kNetworkGenericPassword
= PARAMKEY(0x00002,string
), // password for simple auths
36 kNetworkRestartPosition
= PARAMKEY(0x00003,integer
), // byte position to restart from
38 // generic but for proxy use only (all proxy protocols)
39 kNetworkGenericProxyUsername
= PARAMKEY(0x00100,string
), // username for proxy
40 kNetworkGenericProxyPassword
= PARAMKEY(0x00101,string
), // password for proxy
42 // FTP protocol specific
43 kNetworkFtpPassiveTransfers
= PARAMKEY(0x01001,bool), // use passive mode transfers
44 kNetworkFtpTransferMode
= PARAMKEY(0x01002,string
), // transfer mode ("A" or "I")
45 kNetworkFtpUniqueStores
= PARAMKEY(0x01003,bool), // request unique stores (STOU)
47 // HTTP/HTTPS protocol specific
48 kNetworkHttpCommand
= PARAMKEY(0x02001,string
), // access command (GET et al.)
49 kNetworkHttpUserAgent
= PARAMKEY(0x02002,string
), // User-Agent: value
50 kNetworkHttpMoreHeaders
= PARAMKEY(0x02003,string
), // arbitrary more headers
51 kNetworkHttpAcceptExpiredCerts
= PARAMKEY(0x02004,bool), // accept expired certs
52 kNetworkHttpAcceptUnknownRoots
= PARAMKEY(0x02005,bool), // accept untrusted root certificates
53 kNetworkHttpPostContentType
= PARAMKEY(0x02006,string
), // Content-Type: for posted data
54 kNetworkHttpUseVersion
= PARAMKEY(0x02007,integer
), // subversion of HTTP/1 to use
56 // Legacy interface use ONLY. Not valid for modern use
57 kNetworkLegacyIsSecure
= PARAMKEY(0x100001,bool), // secure connection (SSL)
58 kNetworkLegacyRespHeader
= PARAMKEY(0x100002,string
), // collected response headers
59 kNetworkLegacyReqBody
= PARAMKEY(0x100003,data
), // request body (in memory, as string)
61 kNetworkLegacyResourceSize
= PARAMKEY(0x100004,integer
),
62 kNetworkLegacyFileType
= PARAMKEY(0x100005,integer
),
63 kNetworkLegacyFileCreator
= PARAMKEY(0x100006,integer
),
64 kNetworkLegacyLastModifiedTime
= PARAMKEY(0x100007,integer
),
65 kNetworkLegacyMIMEType
= PARAMKEY(0x100008,string
),
66 kNetworkLegacyResourceName
= PARAMKEY(0x100009,string
),
68 // @@@ mistakenly added -- to be removed
69 kNetworkGenericURL
= PARAMKEY(0x00004,string
),
70 kNetworkGenericHost
= PARAMKEY(0x00005,string
)
74 } // end namespace Security
75 } // end namespace Network
77 #endif //_H_UAPARAMETERS