| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
| |
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.)
|
|
|
|
|
|
|
|
| |
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).
|
|
|
|
|
| |
Also, prefix virtual method implementation names with the class name,
to be consistent with other code.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
http://bugzilla.gnome.org/show_bug.cgi?id=591857
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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.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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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-ups
svn path=/trunk/; revision=1083
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
| |
* 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 trunk
svn path=/trunk/; revision=1041
|