diff options
author | Søren Sandmann <sandmann@redhat.com> | 2007-08-01 04:16:58 -0400 |
---|---|---|
committer | Søren Sandmann <sandmann@redhat.com> | 2007-08-01 04:16:58 -0400 |
commit | b2ae3979ad3c3634fe9e4f84951d67bae172f656 (patch) | |
tree | e373fdb6fac435f6ebcecc797a9a87b5dc0c45d9 /tests | |
parent | d7e52daa37d6e401a95f05c966d7244a56df8789 (diff) |
Support https; deal with http servers closing immediately after accepting
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lacwget.c | 6 | ||||
-rw-r--r-- | tests/uri-test.c | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/tests/lacwget.c b/tests/lacwget.c index c7a182d..f992613 100644 --- a/tests/lacwget.c +++ b/tests/lacwget.c @@ -622,10 +622,10 @@ do_download (LacUri *base_uri, const gchar *uri_str, gboolean try_parse) if (already_downloaded (uri)) return FALSE; -#if 0 - printf ("download: %s\n", uri_str); -#endif + printf ("generated uri: %s\n", lac_uri_string (uri)); + printf ("download: %s\n", uri_str); + request = lac_http_request_new_get ( uri, http_callback, page_info); diff --git a/tests/uri-test.c b/tests/uri-test.c index c040098..839aeab 100644 --- a/tests/uri-test.c +++ b/tests/uri-test.c @@ -41,11 +41,10 @@ print_uri (LacUri *uri, gchar *base_uri_str, gchar *uri_str) g_print (" fragment: %s\n", uri->fragment); break; case LAC_SCHEME_HTTP: - case LAC_SCHEME_HTTPS: - if (uri->scheme == LAC_SCHEME_HTTP) - g_print ("HTTP\n"); - else + if (uri->u.http.is_https) g_print ("HTTPS\n"); + else + g_print ("HTTP\n"); g_print (" host: %s\n", uri->u.http.host); g_print (" port: %d\n", uri->u.http.port); g_print (" path: %s\n", uri->u.http.path); |