comparison Core/Lua/LuaContext.cpp @ 1606:31f4adefb88f

issuing HTTP requests from the plugin SDK
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 01 Sep 2015 17:37:26 +0200
parents f2e3d030ea59
children 54bafe0e7e7b
comparison
equal deleted inserted replaced
1605:fd0464ce1962 1606:31f4adefb88f
239 that.httpClient_.SetMethod(method); 239 that.httpClient_.SetMethod(method);
240 that.httpClient_.SetUrl(url); 240 that.httpClient_.SetUrl(url);
241 241
242 if (nArgs >= 2) 242 if (nArgs >= 2)
243 { 243 {
244 that.httpClient_.SetPostData(lua_tostring(state, 2)); 244 that.httpClient_.SetBody(lua_tostring(state, 2));
245 } 245 }
246 else 246 else
247 { 247 {
248 that.httpClient_.AccessPostData().clear(); 248 that.httpClient_.GetBody().clear();
249 } 249 }
250 250
251 // Do the HTTP POST/PUT request 251 // Do the HTTP POST/PUT request
252 if (!that.AnswerHttpQuery(state)) 252 if (!that.AnswerHttpQuery(state))
253 { 253 {