diff options
| author | Don Kjer <don@lindenlab.com> | 2007-05-01 21:52:29 +0000 | 
|---|---|---|
| committer | Don Kjer <don@lindenlab.com> | 2007-05-01 21:52:29 +0000 | 
| commit | eb3731a3ca0d202809ed20a0f49a7a77ecd4c669 (patch) | |
| tree | d8ad688e5b5092418125ecc1b27669860b148b5b /indra/llmessage | |
| parent | 4ecb9cb63e4993b3b4bc65d73ed255139b5c3f75 (diff) | |
svn merge -r 61099:61168 svn+ssh://svn/svn/linden/branches/release-candidate into release
Diffstat (limited to 'indra/llmessage')
| -rw-r--r-- | indra/llmessage/llhttpclient.cpp | 9 | ||||
| -rw-r--r-- | indra/llmessage/llhttpclient.h | 1 | 
2 files changed, 10 insertions, 0 deletions
| diff --git a/indra/llmessage/llhttpclient.cpp b/indra/llmessage/llhttpclient.cpp index 92c309f1bc..a7d187f534 100644 --- a/indra/llmessage/llhttpclient.cpp +++ b/indra/llmessage/llhttpclient.cpp @@ -17,6 +17,7 @@  #include "llsdserialize.h"  #include "llvfile.h"  #include "llvfs.h" +#include "lluri.h"  #include "message.h"  #include <curl/curl.h> @@ -263,6 +264,14 @@ void LLHTTPClient::get(const std::string& url, ResponderPtr responder, const F32  	request(url, LLURLRequest::HTTP_GET, NULL, responder, timeout);  } +void LLHTTPClient::get(const std::string& url, const LLSD& query, ResponderPtr responder, const F32 timeout) +{ +	LLURI uri; +	 +	uri = LLURI::buildHTTP(url, LLSD::emptyArray(), query); +	get(uri.asString(), responder, timeout); +} +  // A simple class for managing data returned from a curl http request.  class LLHTTPBuffer  { diff --git a/indra/llmessage/llhttpclient.h b/indra/llmessage/llhttpclient.h index 060293c930..f2674ba417 100644 --- a/indra/llmessage/llhttpclient.h +++ b/indra/llmessage/llhttpclient.h @@ -53,6 +53,7 @@ public:  	typedef boost::intrusive_ptr<Responder>	ResponderPtr;  	static void get(const std::string& url, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); +	static void get(const std::string& url, const LLSD& query, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS);  	static void put(const std::string& url, const LLSD& body, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS);  		///< non-blocking  	static void post(const std::string& url, const LLSD& body, ResponderPtr, const F32 timeout=HTTP_REQUEST_EXPIRY_SECS); | 
