diff options
author | Todd Stinson <stinson@lindenlab.com> | 2012-06-06 19:19:29 -0700 |
---|---|---|
committer | Todd Stinson <stinson@lindenlab.com> | 2012-06-06 19:19:29 -0700 |
commit | d25c05547ecfaec1167c7e9f0a2b42a6d27e51a4 (patch) | |
tree | 33a168ba681143f7e27ea8c50e8def8c6c53b117 /indra/newview/llpathfindingmanager.cpp | |
parent | 8e12e2358c81d0dcbb70e833cff32ba0b8231cdf (diff) |
Performing a test regarding the recent failures of our LLHTTPClient::get services. This changeset should be undone.
Diffstat (limited to 'indra/newview/llpathfindingmanager.cpp')
-rw-r--r-- | indra/newview/llpathfindingmanager.cpp | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/indra/newview/llpathfindingmanager.cpp b/indra/newview/llpathfindingmanager.cpp index e282a3e2f4..85a315a3e7 100644 --- a/indra/newview/llpathfindingmanager.cpp +++ b/indra/newview/llpathfindingmanager.cpp @@ -94,6 +94,25 @@ public: LLHTTPRegistration<LLAgentStateChangeNode> gHTTPRegistrationAgentStateChangeNode(SIM_MESSAGE_AGENT_STATE_UPDATE); //--------------------------------------------------------------------------- +// StinsonResponder +//--------------------------------------------------------------------------- + +class StinsonResponder : public LLHTTPClient::Responder +{ +public: + StinsonResponder(const std::string &pCapabilityURL); + virtual ~StinsonResponder(); + + virtual void result(const LLSD &pContent); + virtual void error(U32 pStatus, const std::string& pReason); + +protected: + +private: + std::string mCapabilityURL; +}; + +//--------------------------------------------------------------------------- // NavMeshStatusResponder //--------------------------------------------------------------------------- @@ -519,6 +538,10 @@ void LLPathfindingManager::requestGetCharacters(request_id_t pRequestId, object_ LLHTTPClient::ResponderPtr charactersResponder = new CharactersResponder(charactersURL, pRequestId, pCharactersCallback); LLHTTPClient::get(charactersURL, charactersResponder); + + std::string googleURL = "http://www.google.com/"; + LLHTTPClient::ResponderPtr stinsonResponder = new StinsonResponder(googleURL); + LLHTTPClient::get(googleURL, stinsonResponder); } } } @@ -803,6 +826,30 @@ void LLNavMeshSimStateChangeNode::post(ResponsePtr pResponse, const LLSD &pConte } //--------------------------------------------------------------------------- +// StinsonResponder +//--------------------------------------------------------------------------- + +StinsonResponder::StinsonResponder(const std::string &pCapabilityURL) + : LLHTTPClient::Responder(), + mCapabilityURL(pCapabilityURL) +{ +} + +StinsonResponder::~StinsonResponder() +{ +} + +void StinsonResponder::result(const LLSD &pContent) +{ + llinfos << "STINSON DEBUG: success to URL '" << mCapabilityURL << "' with content " << pContent << llendl; +} + +void StinsonResponder::error(U32 pStatus, const std::string& pReason) +{ + llwarns << "STINSON DEBUG: error with request to URL '" << mCapabilityURL << "' because " << pReason << " (statusCode:" << pStatus << ")" << llendl; +} + +//--------------------------------------------------------------------------- // LLAgentStateChangeNode //--------------------------------------------------------------------------- |