summaryrefslogtreecommitdiff
path: root/libsoup/soup-logger.c
Commit message (Collapse)AuthorAgeFilesLines
* Add SoupMessage::starting signalCarlos Garcia Campos2015-03-021-40/+65
| | | | | | | It's similar to the SoupSession::request-started signal, but it's also emitted for cached resources. https://bugzilla.gnome.org/show_bug.cgi?id=731153
* soup-logger: fix -Wformat-nonliteral warnings in clangDan Winship2013-10-171-1/+4
|
* [soup-logger] On response, always print headersAndres Gomez2013-07-151-7/+36
| | | | | | | | | | | | | | | SoupLogger won't print any information upon response until the "got-body" or "got-informational" signals are received. If the response message has been cancelled or requeued first, we miss the headers information, even when we would have been already able to print it. Now, upon response, if the logging has not yet happened when the "finished" signal is triggered, we do perform the logging then. https://bugzilla.gnome.org/show_bug.cgi?id=703200
* docs: Lots of minor fixes and additionsDan Winship2012-12-271-1/+1
|
* SoupLogger: fix printing of Host header with IPv6 literalDan Winship2012-11-171-1/+13
| | | | | | | | | SoupLogger was misprinting Host headers with IPv6 literals (even though soup-message-client-io was sending them correctly). Fix that. Also includes an addition to misc-test to verify that the Host header received by the server is correct (which it already was, but the SoupLogger bug made me think it wasn't.)
* Clean up includesDan Winship2012-07-131-5/+1
| | | | | | | | Especially, include soup.h rather than individually including a bunch of other public soup-*.h files. Remove unnecessary system includes (many are leftovers from code that has moved down into glib).
* Reorganize files to need fewer forward declarationsDan Winship2012-07-131-24/+21
| | | | | Also, prefix virtual method implementation names with the class name, to be consistent with other code.
* Require glib 2.31 and update to new thread APIsDan Winship2011-12-011-7/+7
|
* SoupAuthBasic: allow (some) non-ASCII usernames/passwordsDan Winship2011-11-131-1/+12
| | | | | | | | | | Convert the (assumed-UTF-8) username and password into ISO-8859-1 before encoding. This is what a few other browsers do. Based on a patch from Joachim Breitner, sponsored by ITOMIG GmbH and the City of Böblingen. https://bugzilla.gnome.org/show_bug.cgi?id=576838
* Lots of gtk-doc fixes (no code changes)Dan Winship2011-09-221-3/+3
|
* SoupLogger: don't crash if the session emits bogus dataDan Winship2010-04-101-0/+9
| | | | | | | | In general, if the data being passed to SoupLogger is bad, the app is probably going to crash soon anyway, but we'd rather have it crash somewhere "real", not in the debugging code. https://bugzilla.gnome.org/show_bug.cgi?id=611663
* Fix SoupLogger to not crash with streamed requestsDan Winship2009-08-221-12/+15
| | | | http://bugzilla.gnome.org/show_bug.cgi?id=591857
* Bug 576760 – soup_message_headers_get_content_type returns bad headersDan Winship2009-04-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-message-headers.c (soup_message_headers_get_one) (soup_message_headers_get_list): New replacements for soup_message_headers_get(), indicating explicitly whether the caller expects the header to be a list or not; for non-list-type headers, if there's more than one, the second one should be ignored rather than concatenated to the first. (soup_message_headers_get): deprecate this. * libsoup/*.c: * tests/*.c: Update to use soup_message_headers_get_one() or _get_list() as appropriate. * tests/header-parsing.c (do_content_type_tests): Add some tests of Content-Type parsing/setting, including making sure that duplicate Content-Type headers are ignored. * docs/reference/libsoup-2.4-sections.txt: update svn path=/trunk/; revision=1258
* clarify exactly when stuff gets logged (and in particular, thatDan Winship2008-11-241-0/+11
| | | | | | | | * libsoup/soup-logger.c: clarify exactly when stuff gets logged (and in particular, that SoupSession::authenticate gets emitted before the response it is authenticating gets logged). svn path=/trunk/; revision=1207
* doc fixupsDan Winship2008-10-011-1/+1
| | | | | | | | | | | | | | | | | * libsoup/soup-cookie-jar.c: * libsoup/soup-cookie.c: * libsoup/soup-cookie.h: * libsoup/soup-headers.c: * libsoup/soup-logger.c: * libsoup/soup-session-feature.c: * libsoup/soup-session-feature.h: * libsoup/soup-session.c: doc fixups * docs/reference/libsoup-2.4-docs.sgml: * docs/reference/libsoup-2.4-sections.txt: * docs/reference/libsoup-2.4.types: Add missing bits svn path=/trunk/; revision=1170
* libsoup/soup-auth-manager-ntlm.c libsoup/soup-auth-manager.cDan Winship2008-09-261-1/+1
| | | | | | | | | | | | | | | | | | * libsoup/soup-auth-manager-ntlm.c * libsoup/soup-auth-manager.c * libsoup/soup-cookie-jar.c * libsoup/soup-dns.c * libsoup/soup-logger.c: * libsoup/soup-message-body.h: * libsoup/soup-message.h * libsoup/soup-misc.h: * libsoup/soup-xmlrpc.h: * tests/continue-test.c: * tests/ntlm-test.c: Fix warnings pointed out by gcc -pedantic. #553976, Sander Dijkhuis. svn path=/trunk/; revision=1167
* don't add a Host header to the message if the caller already added one.Dan Winship2008-07-261-2/+6
| | | | | | | | | | | | | | * libsoup/soup-message-client-io.c (get_request_headers): don't add a Host header to the message if the caller already added one. #539803, Marc Maurer. * libsoup/soup-logger.c (print_request): likewise * tests/misc-test.c: new test file for small miscellaneous test cases. (do_host_test): test Host-header overriding svn path=/trunk/; revision=1146
* New interface type representing a feature that can be added to aDan Winship2008-04-081-50/+39
| | | | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-session-feature.c: New interface type representing a feature that can be added to a SoupSession. * libsoup/soup-session.c (soup_session_add_feature): Add a feature to the session by prepending it to priv->features and calling soup_session_feature_attach() on it. (soup_session_add_feature_by_type): Add a feature to the session by creating an object of the indicated type and passing it to soup_session_add_feature. (soup_session_remove_feature) (soup_session_remove_feature_by_type): Likewise, remove features (soup_session_class_init, set_property): register/handle construct-time feature adding/removing properties (dispose): cleanup features * libsoup/soup-logger.c: port to SoupSessionFeature * tests/test-utils.c (soup_test_session_new): Use soup_session_add_feature rather than soup_logger_attach. svn path=/trunk/; revision=1133
* Define two new signals, request_queued and request_unqueued, to provided aDan Winship2008-03-161-17/+29
| | | | | | | | | | | | | | | | | * libsoup/soup-session.c: Define two new signals, request_queued and request_unqueued, to provided a clearer (and clearly-documented) lifecycle for messages, helping us (and other people) avoid bugs like #522601, SoupSession::authenticate signal emitted multiple times per message (reported and analyzed by Tommi Komulainen). * libsoup/soup-logger.c: * libsoup/soup-auth-manager.c: * libsoup/soup-auth-manager-ntlm.c: Use request_queued/unqueued * tests/auth-test.c (do_async_auth_test): add a regression test svn path=/trunk/; revision=1110
* Misc gtk-doc fix-upsDan Winship2008-02-101-0/+2
| | | | | | * Misc gtk-doc fix-ups svn path=/trunk/; revision=1083
* Add an iterator type for SoupMessageHeaders.Dan Winship2008-02-091-54/+53
| | | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-message-headers.c (SoupMessageHeadersIter) (soup_message_headers_iter_init, soup_message_headers_iter_next): Add an iterator type for SoupMessageHeaders. * libsoup/soup-message-client-io.c (get_request_headers): * libsoup/soup-message-server-io.c (get_response_headers): Use SoupMessageHeadersIter. * libsoup/soup-logger.c (print_request, print_response): Use SoupMessageHeadersIter. And take advantage of the simplification to fix the kludge where 'direction' was stored as a field in SoupLoggerPrivate rather than being an argument to soup_logger_print. * tests/get.c (get_url): * tests/header-parsing.c (check_headers): * tests/simple-httpd.c (server_callback): Use SoupMessageHeadersIter svn path=/trunk/; revision=1079
* Fix session ids by using weak refs for the logger cleanup rather thanDan Winship2008-01-271-12/+18
| | | | | | | | | | | * libsoup/soup-logger.c (soup_logger_attach): Fix session ids by using weak refs for the logger cleanup rather than trying to use the same qdata for two different things. (print_request, print_response): use full type names in the Soup-Debug line, since SoupSessionSync and SoupSessionAsync get numbered separately. svn path=/trunk/; revision=1054
* Merge libsoup-2.4 branch to trunkDan Winship2008-01-151-0/+638
* Merge libsoup-2.4 branch to trunk svn path=/trunk/; revision=1041