diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2010-11-01 14:40:46 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2010-11-01 14:40:46 +0100 |
commit | 893403b7cd6793e97fe617218a70bf0d0bfa7142 (patch) | |
tree | 9bd8dff74a88362b7c50a3b32dec888014438a8d /tools | |
parent | 406ca6dc6ee38abca6dd9f20c458ee37d6b7c963 (diff) | |
download | connman-893403b7cd6793e97fe617218a70bf0d0bfa7142.tar.gz connman-893403b7cd6793e97fe617218a70bf0d0bfa7142.tar.bz2 connman-893403b7cd6793e97fe617218a70bf0d0bfa7142.zip |
Split the GET and POST method APIs
Diffstat (limited to 'tools')
-rw-r--r-- | tools/web-test.c | 3 | ||||
-rw-r--r-- | tools/wispr.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/tools/web-test.c b/tools/web-test.c index 5a320ec6..58ff1317 100644 --- a/tools/web-test.c +++ b/tools/web-test.c @@ -119,8 +119,7 @@ int main(int argc, char *argv[]) timer = g_timer_new(); - if (g_web_request(web, G_WEB_METHOD_GET, argv[1], - web_result, NULL) == 0) { + if (g_web_request_get(web, argv[1], web_result, NULL) == 0) { fprintf(stderr, "Failed to start request\n"); return 1; } diff --git a/tools/wispr.c b/tools/wispr.c index 9d02cb69..99c0b69d 100644 --- a/tools/wispr.c +++ b/tools/wispr.c @@ -394,8 +394,7 @@ int main(int argc, char *argv[]) g_web_parser_ref(request_parser); g_web_parser_unref(request_parser); - request_id = g_web_request(web, G_WEB_METHOD_GET, option_url, - web_result, NULL); + request_id = g_web_request_get(web, option_url, web_result, NULL); g_free(option_url); |