const Soup = imports.gi.Soup;
var _httpSession = new Soup.Session();
var message = Soup.form_request_new_from_hash('GET', "http://google.com", {});
_httpSession.queue_message(message, function(_httpSession, message) {
log(message.status_code);
log(message.response_body.data);
});
No comments:
Post a Comment