diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llmessage/llhttpclient.cpp | 5 | ||||
-rw-r--r-- | linden/indra/llmessage/llhttpclient.h | 1 | ||||
-rw-r--r-- | linden/indra/llmessage/llmessage.vcproj | 2 | ||||
-rw-r--r-- | linden/indra/llmessage/llmessage_vc8.vcproj | 2 | ||||
-rw-r--r-- | linden/indra/llmessage/llurlrequest.cpp | 7 | ||||
-rw-r--r-- | linden/indra/llmessage/llurlrequest.h | 1 |
6 files changed, 18 insertions, 0 deletions
diff --git a/linden/indra/llmessage/llhttpclient.cpp b/linden/indra/llmessage/llhttpclient.cpp index 7144f13..bf5fa40 100644 --- a/linden/indra/llmessage/llhttpclient.cpp +++ b/linden/indra/llmessage/llhttpclient.cpp | |||
@@ -325,6 +325,11 @@ static void request( | |||
325 | request(url, method, body_injector, responder, LLSD(), timeout); | 325 | request(url, method, body_injector, responder, LLSD(), timeout); |
326 | } | 326 | } |
327 | 327 | ||
328 | void LLHTTPClient::head(const std::string& url, ResponderPtr responder, const F32 timeout) | ||
329 | { | ||
330 | request(url, LLURLRequest::HTTP_HEAD, NULL, responder, timeout); | ||
331 | } | ||
332 | |||
328 | void LLHTTPClient::get(const std::string& url, ResponderPtr responder, const LLSD& headers, const F32 timeout) | 333 | void LLHTTPClient::get(const std::string& url, ResponderPtr responder, const LLSD& headers, const F32 timeout) |
329 | { | 334 | { |
330 | request(url, LLURLRequest::HTTP_GET, NULL, responder, headers, timeout); | 335 | request(url, LLURLRequest::HTTP_GET, NULL, responder, headers, timeout); |
diff --git a/linden/indra/llmessage/llhttpclient.h b/linden/indra/llmessage/llhttpclient.h index 8c2309c..6323def 100644 --- a/linden/indra/llmessage/llhttpclient.h +++ b/linden/indra/llmessage/llhttpclient.h | |||
@@ -89,6 +89,7 @@ public: | |||
89 | 89 | ||
90 | typedef boost::intrusive_ptr<Responder> ResponderPtr; | 90 | typedef boost::intrusive_ptr<Responder> ResponderPtr; |
91 | 91 | ||
92 | static void head(const std::string& url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); | ||
92 | static void get(const std::string& url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); | 93 | static void get(const std::string& url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); |
93 | static void get(const std::string& url, ResponderPtr, const LLSD& headers, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); | 94 | static void get(const std::string& url, ResponderPtr, const LLSD& headers, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); |
94 | static void get(const std::string& url, const LLSD& query, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); | 95 | static void get(const std::string& url, const LLSD& query, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); |
diff --git a/linden/indra/llmessage/llmessage.vcproj b/linden/indra/llmessage/llmessage.vcproj index dcc1202..64551bd 100644 --- a/linden/indra/llmessage/llmessage.vcproj +++ b/linden/indra/llmessage/llmessage.vcproj | |||
@@ -64,6 +64,7 @@ | |||
64 | CharacterSet="1"> | 64 | CharacterSet="1"> |
65 | <Tool | 65 | <Tool |
66 | Name="VCCLCompilerTool" | 66 | Name="VCCLCompilerTool" |
67 | AdditionalOptions="/Oy-" | ||
67 | AdditionalIncludeDirectories="..\llcommon;..\llmath;..\llvfs;..\..\libraries\i686-win32\include;..\..\libraries\include\" | 68 | AdditionalIncludeDirectories="..\llcommon;..\llmath;..\llvfs;..\..\libraries\i686-win32\include;..\..\libraries\include\" |
68 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB;LL_WINDOWS;LL_RELEASE" | 69 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB;LL_WINDOWS;LL_RELEASE" |
69 | RuntimeLibrary="0" | 70 | RuntimeLibrary="0" |
@@ -106,6 +107,7 @@ | |||
106 | CharacterSet="1"> | 107 | CharacterSet="1"> |
107 | <Tool | 108 | <Tool |
108 | Name="VCCLCompilerTool" | 109 | Name="VCCLCompilerTool" |
110 | AdditionalOptions="/Oy-" | ||
109 | Optimization="0" | 111 | Optimization="0" |
110 | AdditionalIncludeDirectories="..\llcommon;..\llmath;..\llvfs;..\..\libraries\i686-win32\include;..\..\libraries\include\" | 112 | AdditionalIncludeDirectories="..\llcommon;..\llmath;..\llvfs;..\..\libraries\i686-win32\include;..\..\libraries\include\" |
111 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB;LL_WINDOWS;LL_RELEASE" | 113 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB;LL_WINDOWS;LL_RELEASE" |
diff --git a/linden/indra/llmessage/llmessage_vc8.vcproj b/linden/indra/llmessage/llmessage_vc8.vcproj index eec76e5..e16a52a 100644 --- a/linden/indra/llmessage/llmessage_vc8.vcproj +++ b/linden/indra/llmessage/llmessage_vc8.vcproj | |||
@@ -109,6 +109,7 @@ | |||
109 | /> | 109 | /> |
110 | <Tool | 110 | <Tool |
111 | Name="VCCLCompilerTool" | 111 | Name="VCCLCompilerTool" |
112 | AdditionalOptions="/Oy-" | ||
112 | AdditionalIncludeDirectories="..\llcommon;..\llmath;..\llvfs;..\..\libraries\i686-win32\include;..\..\libraries\include\" | 113 | AdditionalIncludeDirectories="..\llcommon;..\llmath;..\llvfs;..\..\libraries\i686-win32\include;..\..\libraries\include\" |
113 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB;LL_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_USE_32BIT_TIME_T;LL_RELEASE" | 114 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB;LL_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_USE_32BIT_TIME_T;LL_RELEASE" |
114 | RuntimeLibrary="0" | 115 | RuntimeLibrary="0" |
@@ -175,6 +176,7 @@ | |||
175 | /> | 176 | /> |
176 | <Tool | 177 | <Tool |
177 | Name="VCCLCompilerTool" | 178 | Name="VCCLCompilerTool" |
179 | AdditionalOptions="/Oy-" | ||
178 | Optimization="0" | 180 | Optimization="0" |
179 | AdditionalIncludeDirectories="..\llcommon;..\llmath;..\llvfs;..\..\libraries\i686-win32\include;..\..\libraries\include\" | 181 | AdditionalIncludeDirectories="..\llcommon;..\llmath;..\llvfs;..\..\libraries\i686-win32\include;..\..\libraries\include\" |
180 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB;LL_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_USE_32BIT_TIME_T;LL_RELEASE" | 182 | PreprocessorDefinitions="WIN32;NDEBUG;_LIB;LL_WINDOWS;_CRT_SECURE_NO_DEPRECATE;_CRT_NONSTDC_NO_DEPRECATE;_USE_32BIT_TIME_T;LL_RELEASE" |
diff --git a/linden/indra/llmessage/llurlrequest.cpp b/linden/indra/llmessage/llurlrequest.cpp index 857f804..8df4be4 100644 --- a/linden/indra/llmessage/llurlrequest.cpp +++ b/linden/indra/llmessage/llurlrequest.cpp | |||
@@ -428,6 +428,13 @@ bool LLURLRequest::configure() | |||
428 | NULL); | 428 | NULL); |
429 | switch(mAction) | 429 | switch(mAction) |
430 | { | 430 | { |
431 | case HTTP_HEAD: | ||
432 | curl_easy_setopt(mDetail->mCurl, CURLOPT_HEADER, 1); | ||
433 | curl_easy_setopt(mDetail->mCurl, CURLOPT_NOBODY, 1); | ||
434 | curl_easy_setopt(mDetail->mCurl, CURLOPT_FOLLOWLOCATION, 1); | ||
435 | rv = true; | ||
436 | break; | ||
437 | |||
431 | case HTTP_GET: | 438 | case HTTP_GET: |
432 | curl_easy_setopt(mDetail->mCurl, CURLOPT_HTTPGET, 1); | 439 | curl_easy_setopt(mDetail->mCurl, CURLOPT_HTTPGET, 1); |
433 | curl_easy_setopt(mDetail->mCurl, CURLOPT_FOLLOWLOCATION, 1); | 440 | curl_easy_setopt(mDetail->mCurl, CURLOPT_FOLLOWLOCATION, 1); |
diff --git a/linden/indra/llmessage/llurlrequest.h b/linden/indra/llmessage/llurlrequest.h index f335316..4b12e71 100644 --- a/linden/indra/llmessage/llurlrequest.h +++ b/linden/indra/llmessage/llurlrequest.h | |||
@@ -69,6 +69,7 @@ public: | |||
69 | enum ERequestAction | 69 | enum ERequestAction |
70 | { | 70 | { |
71 | INVALID, | 71 | INVALID, |
72 | HTTP_HEAD, | ||
72 | HTTP_GET, | 73 | HTTP_GET, |
73 | HTTP_PUT, | 74 | HTTP_PUT, |
74 | HTTP_POST, | 75 | HTTP_POST, |