00001 // Filename: httpClient.I 00002 // Created by: drose (24Sep02) 00003 // 00004 //////////////////////////////////////////////////////////////////// 00005 // 00006 // PANDA 3D SOFTWARE 00007 // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved 00008 // 00009 // All use of this software is subject to the terms of the Panda 3d 00010 // Software license. You should have received a copy of this license 00011 // along with this source code; you will also find a current copy of 00012 // the license at http://www.panda3d.org/license.txt . 00013 // 00014 // To contact the maintainers of this program write to 00015 // panda3d@yahoogroups.com . 00016 // 00017 //////////////////////////////////////////////////////////////////// 00018 00019 00020 //////////////////////////////////////////////////////////////////// 00021 // Function: HTTPClient::set_proxy 00022 // Access: Published 00023 // Description: Specifies the proxy URL to handle all http and 00024 // https requests. 00025 //////////////////////////////////////////////////////////////////// 00026 INLINE void HTTPClient:: 00027 set_proxy(const URLSpec &proxy) { 00028 _proxy = proxy; 00029 } 00030 00031 //////////////////////////////////////////////////////////////////// 00032 // Function: HTTPClient::get_proxy 00033 // Access: Published 00034 // Description: Returns the proxy URL to handle all http and 00035 // https requests. 00036 //////////////////////////////////////////////////////////////////// 00037 INLINE const URLSpec &HTTPClient:: 00038 get_proxy() const { 00039 return _proxy; 00040 } 00041 00042 //////////////////////////////////////////////////////////////////// 00043 // Function: HTTPClient::set_http_version 00044 // Access: Published 00045 // Description: Specifies the version of HTTP that the client uses to 00046 // identify itself to the server. The default is HV_11, 00047 // or HTTP 1.0; you can set this to HV_10 (HTTP 1.0) to 00048 // request the server use the older interface. 00049 //////////////////////////////////////////////////////////////////// 00050 INLINE void HTTPClient:: 00051 set_http_version(HTTPEnum::HTTPVersion version) { 00052 _http_version = version; 00053 } 00054 00055 //////////////////////////////////////////////////////////////////// 00056 // Function: HTTPClient::get_http_version 00057 // Access: Published 00058 // Description: Returns the client's current setting for HTTP 00059 // version. See set_http_version(). 00060 //////////////////////////////////////////////////////////////////// 00061 INLINE HTTPEnum::HTTPVersion HTTPClient:: 00062 get_http_version() const { 00063 return _http_version; 00064 } 00065 00066 //////////////////////////////////////////////////////////////////// 00067 // Function: HTTPClient::set_verify_ssl 00068 // Access: Published 00069 // Description: Specifies whether the client will insist on verifying 00070 // the identity of the servers it connects to via SSL 00071 // (that is, https). 00072 // 00073 // The parameter value is an enumerated type which 00074 // indicates the level of security to which the client 00075 // will insist upon. 00076 //////////////////////////////////////////////////////////////////// 00077 INLINE void HTTPClient:: 00078 set_verify_ssl(HTTPClient::VerifySSL verify_ssl) { 00079 _verify_ssl = verify_ssl; 00080 } 00081 00082 //////////////////////////////////////////////////////////////////// 00083 // Function: HTTPClient::get_verify_ssl 00084 // Access: Published 00085 // Description: Returns whether the client will insist on verifying 00086 // the identity of the servers it connects to via SSL 00087 // (that is, https). See set_verify_ssl(). 00088 //////////////////////////////////////////////////////////////////// 00089 INLINE HTTPClient::VerifySSL HTTPClient:: 00090 get_verify_ssl() const { 00091 return _verify_ssl; 00092 } 00093