summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* 2.24.3LIBSOUP_2_24_3gnome-2-24Dan Winship2009-01-123-1/+24
| | | | | | | | * configure.in: 2.24.3 * NEWS: Update svn path=/branches/gnome-2-24/; revision=1229
* pull-ups from trunkDan Winship2009-01-129-22/+299
| | | | svn path=/branches/gnome-2-24/; revision=1228
* 2.24.2.1 (sigh)LIBSOUP_2_24_2_1Dan Winship2008-11-253-2/+9
| | | | | | | | * configure.in: 2.24.2.1 (sigh) * NEWS: update svn path=/branches/gnome-2-24/; revision=1212
* set a path, since the docs say SoupURI always has a path, and the URIsDan Winship2008-11-252-0/+9
| | | | | | | | | | * libsoup/soup-uri.c (soup_uri_copy_root): set a path, since the docs say SoupURI always has a path, and the URIs returned from here get used as the URIs for proxy CONNECT requests, which might get examined by various session features. Fixes a crash in the cookie code. #562191, Mark Lee. svn path=/branches/gnome-2-24/; revision=1211
* 2.24.2LIBSOUP_2_24_2Dan Winship2008-11-244-10/+25
| | | | | | | | * configure.in: 2.24.2 * NEWS: update svn path=/branches/gnome-2-24/; revision=1209
* another pullup (SoupLogger docs)Dan Winship2008-11-242-0/+17
| | | | svn path=/branches/gnome-2-24/; revision=1208
* pull-ups from trunkDan Winship2008-11-239-4/+74
| | | | svn path=/branches/gnome-2-24/; revision=1206
* 2.24.1LIBSOUP_2_24_1Dan Winship2008-10-203-1/+37
| | | | | | | | * configure.in: 2.24.1 * NEWS: update svn path=/branches/gnome-2-24/; revision=1186
* pull-ups from trunkDan Winship2008-10-2011-8/+50
| | | | svn path=/branches/gnome-2-24/; revision=1185
* pull up xmlrpc-test php bug workaround from trunkDan Winship2008-10-013-12/+43
| | | | svn path=/branches/gnome-2-24/; revision=1174
* pullups from trunkDan Winship2008-10-0133-163/+607
| | | | svn path=/branches/gnome-2-24/; revision=1171
* merge from trunk 2.24.0.1LIBSOUP_2_24_0_1Dan Winship2008-09-245-19/+29
| | | | | | | | | | | | | | | merge from trunk * configure.in: 2.24.0.1 * NEWS: Update * libsoup/soup-session.c (redirect_handler): * libsoup/soup-message.c (soup_message_new): (soup_message_new_from_uri, soup_message_set_uri): Revert the 2008-08-25 change; it breaks the rhythmbox DAAP plugin. #553466. To be revisited. svn path=/branches/gnome-2-24/; revision=1165
* gnome-2-24Dan Winship2008-09-220-0/+0
| | | | svn path=/branches/gnome-2-24/; revision=1163
* 2.24.0LIBSOUP_2_24_0Dan Winship2008-09-222-1/+5
| | | | | | * configure.in: 2.24.0 svn path=/trunk/; revision=1161
* 2.23.92 (belated; I apparently forgot to commit this after distingLIBSOUP_2_23_92Dan Winship2008-09-163-1/+13
| | | | | | | 2.23.92 (belated; I apparently forgot to commit this after disting 2.23.92) svn path=/trunk/; revision=1159
* a 302 response to HEAD (or any other safe method) should be treated like aDan Winship2008-09-073-16/+62
| | | | | | | | | | * libsoup/soup-session.c (redirect_handler): a 302 response to HEAD (or any other safe method) should be treated like a 307, not a 303. #551190, Jonathan Matthew. * tests/redirect-test.c: test that svn path=/trunk/; revision=1158
* 2.23.91LIBSOUP_2_23_91Dan Winship2008-09-013-1/+18
| | | | | | | | * configure.in: 2.23.91 * NEWS: update svn path=/trunk/; revision=1156
* new macro to check if a URI is a valid http or https URI.Dan Winship2008-08-255-13/+56
| | | | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-uri.h (SOUP_URI_VALID_FOR_HTTP): new macro to check if a URI is a valid http or https URI. * libsoup/soup-uri.c (soup_uri_new_with_base): Update http/https check to use SOUP_URI_VALID_FOR_HTTP(). * libsoup/soup-session.c (redirect_handler): Check SOUP_URI_VALID_FOR_HTTP() and call it an error if the check fails. * libsoup/soup-message.c (soup_message_new): Remove the uri->host check from here. Update docs to clarify that @uri must be an http/https URI. (soup_message_new_from_uri): Check SOUP_URI_VALID_FOR_HTTP(). Update docs. (soup_message_set_uri): Check SOUP_URI_VALID_FOR_HTTP(). Update docs. Should prevent the crash in #528882, but there's still something going wrong there at a higher level. svn path=/trunk/; revision=1155
* Add a SoupDate to GTimeVal conversion function, for use in gvfs. #549006,Bastien Nocera2008-08-223-2/+30
| | | | | | | | | | | | | 2008-08-22 Bastien Nocera <hadess@hadess.net> * libsoup/soup-date.c (soup_date_to_time_t), (soup_date_to_timeval): * libsoup/soup-date.h: Add a SoupDate to GTimeVal conversion function, for use in gvfs. #549006, with help from Dan Winship <danw@gnome.org> svn path=/trunk/; revision=1154
* Revert previous commit; that would still fail in the case of anDan Winship2008-08-182-1/+10
| | | | | | | | | | | * libsoup.pc.in (Requires): Revert previous commit; that would still fail in the case of an application linking against a library that privately links against libsoup. The only correct solution in the face of --as-needed (or on OSes where the linker always works that way) is for the module that actually calls g_thread_init() to explicitly link against libgthread. svn path=/trunk/; revision=1153
* g_return_if_fail if either username or password is NULL. Noted on theDan Winship2008-08-143-5/+9
| | | | | | | | | * libsoup/soup-auth.c (soup_auth_authenticate): g_return_if_fail if either username or password is NULL. Noted on the mailing list. * libsoup/soup-auth-basic.c (authenticate): remove redundant check svn path=/trunk/; revision=1152
* Add gthread-2.0; the app must call g_thread_init(), but libsoup won't pullDan Winship2008-08-142-1/+7
| | | | | | | | | * libsoup.pc.in (Requires): Add gthread-2.0; the app must call g_thread_init(), but libsoup won't pull it in itself if built with --as-needed, so make sure it gets pulled in from here. Noted by Zeeshan Ali. svn path=/trunk/; revision=1151
* 2.23.6LIBSOUP_2_23_6Dan Winship2008-08-043-1/+26
| | | | | | | | * configure.in: 2.23.6 * NEWS: update svn path=/trunk/; revision=1149
* Fix horrible bizarre brokenness in GIOChannel subclassing. #536417, TorDan Winship2008-07-262-7/+8
| | | | | | | * libsoup/soup-gnutls.c: Fix horrible bizarre brokenness in GIOChannel subclassing. #536417, Tor Lillqvist. svn path=/trunk/; revision=1148
* Add this to schedule a callback in a GMainContext "right away", as opposedDan Winship2008-07-2610-14/+68
| | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-misc.c (soup_add_completion): Add this to schedule a callback in a GMainContext "right away", as opposed to soup_add_idle(), which uses a lower priority and therefore may not end up calling the callback for a long time if the application is busy with I/O. #536676, Benjamin Otte. * libsoup/soup-dns.c (resolver_thread, async_cancel) (soup_dns_lookup_resolve_async): * libsoup/soup-message-io.c (soup_message_io_unpause): * libsoup/soup-session-sync.c (queue_message_thread): * libsoup/soup-session-async.c (do_idle_run_queue): * libsoup/soup-socket.c (async_cancel) (soup_socket_connect_async): * tests/test-utils.c (test_server_shutdown): Use soup_add_completion() rather than soup_add_idle(). * docs/reference/libsoup-2.4-sections.txt: add soup_add_completion svn path=/trunk/; revision=1147
* don't add a Host header to the message if the caller already added one.Dan Winship2008-07-265-8/+141
| | | | | | | | | | | | | | * 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
* change read_length, write_length, and written to goffset so we canDan Winship2008-07-262-3/+7
| | | | | | | | * libsoup/soup-message-io.c (SoupMessageIOData): change read_length, write_length, and written to goffset so we can properly handle message bodies > 4G. #539861, Peter Christensen. svn path=/trunk/; revision=1145
* if the server response doesn't include an algorithm, it is supposed toDan Winship2008-07-262-3/+5
| | | | | | | | * libsoup/soup-auth-digest.c (soup_auth_digest_parse_algorithm): if the server response doesn't include an algorithm, it is supposed to default to MD5. #544681, Mads Chr. Olesen. svn path=/trunk/; revision=1144
* add $(GLIB_LIBS) so this still works when building with weird LDFLAGS.Dan Winship2008-07-263-2/+11
| | | | | | | | | * tests/Makefile.am (LIBS): add $(GLIB_LIBS) so this still works when building with weird LDFLAGS. #541506, Götz Waschk. * docs/reference/Makefile.am (GTKDOC_LIBS): likewise svn path=/trunk/; revision=1143
* The SO_RCVTIMEO and SO_SNDTIMEO options to setsockopt() take int values,Tor Lillqvist2008-06-042-1/+24
| | | | | | | | | | | | | | | 2008-06-04 Tor Lillqvist <tml@novell.com> * libsoup/soup-socket.c (set_fdflags): The SO_RCVTIMEO and SO_SNDTIMEO options to setsockopt() take int values, in milliseconds, on Windows. Not struct timeval. Eek. So passing a struct timeval meant that the tv_sec value (which is first in the struct) is interpreted as milliseconds. setsockopt apparently doesn't even get upset by the fact that the option size doesn't match the sizeof(int) it should expect. svn path=/trunk/; revision=1142
* fix the path checkingDan Winship2008-05-022-2/+7
| | | | | | | * libsoup/soup-cookie.c (soup_cookie_applies_to_uri): fix the path checking svn path=/trunk/; revision=1141
* Fix compilation error in the !HAVE_IPV6 && !HAVE_INET_PTON &&Tor Lillqvist2008-04-292-1/+7
| | | | | | | | | | | 2008-04-29 Tor Lillqvist <tml@novell.com> * libsoup/soup-dns.c (soup_dns_is_ip_address): Fix compilation error in the !HAVE_IPV6 && !HAVE_INET_PTON && !HAVE_INET_ATON case. svn path=/trunk/; revision=1140
* 2.23.1, bump AGE and CURRENTLIBSOUP_2_23_1Dan Winship2008-04-213-3/+27
| | | | | | | | * configure.in: 2.23.1, bump AGE and CURRENT * NEWS: update svn path=/trunk/; revision=1138
* Fixes for GnuTLS support on Win32. #528752, patch from Marc MaurerDan Winship2008-04-206-20/+54
| | | | | | | | | | | | | | | | | | | * libsoup/soup-gnutls.c (soup_ssl_wrap_iochannel): add an argument saying whether or not the socket is non-blocking, since there's no way to determine this from the fd in WinSock. (do_handshake, soup_gnutls_read, soup_gnutls_write): Update for that. * libsoup/soup-socket.c (soup_socket_start_proxy_ssl): Update for that * libsoup/soup-nossl.c (soup_ssl_wrap_iochannel): update the declaration here too * tests/ssl-test.c: Some updates to get this closer to working on Windows... svn path=/trunk/; revision=1137
* Check that the cookie was parsed successfully before setting itChris Lord2008-04-142-2/+11
| | | | | | | * libsoup/soup-cookie-jar.c (soup_cookie_jar_set_cookie): Check that the cookie was parsed successfully before setting it svn path=/trunk/; revision=1136
* Initial HTTP cookie support imported from development git repo,Dan Winship2008-04-0914-40/+1442
| | | | | | | | | | | | | | | | | | | | | | | | | including patches from Xan Lopez. TODO: make sure the logic in soup_cookie_jar_get_cookies() is right. Add a test program to tests/. * libsoup/soup-cookie.c: Code for parsing and generating HTTP cookies. * libsoup/soup-cookie-jar.c: Code for managing SoupCookies and integrating cookie management with a SoupSession. * libsoup/soup-date.c (soup_date_is_past): New, checks if a SoupDate refers to a time in the past * libsoup/soup-dns.c (soup_dns_is_ip_address): New, checks if a string is a valid IP address * libsoup/soup-headers.c (soup_header_parse_semi_param_list): New, like soup_header_parse_param_list, but for semicolon-delimited data. svn path=/trunk/; revision=1135
* Make this a GObject and specifically a SoupSessionFeature. Add anDan Winship2008-04-087-221/+433
| | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-auth-manager.c: Make this a GObject and specifically a SoupSessionFeature. Add an "authenticate" signal, and emit that rather than explicitly calling into the SoupSession and telling it when to emit its own authenticate signal. * libsoup/soup-auth-manager-ntlm.c: Make this a subclass of SoupAuthManager, with NTLM support controllable via a property. * libsoup/soup-session.c (soup_session_init): create an auth_manager of type SOUP_TYPE_AUTH_MANAGER_NTLM, but defaulting to USE_NTLM=FALSE. Connect to its "authenticate" signal, and call soup_session_add_feature() on it. (set_property, get_property): proxy the USE_NTLM property to the auth manager. (auth_manager_authenticate): signal handler for SoupAuthManager "authenticate" signal. (Replaces soup_session_emit_authenticate(), which is no longer needed) svn path=/trunk/; revision=1134
* New interface type representing a feature that can be added to aDan Winship2008-04-0811-54/+368
| | | | | | | | | | | | | | | | | | | | | | | | * 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
* Having branched for gnome-2-22, bump version to 2.23.0 for the GNOME 2.23Dan Winship2008-04-082-1/+8
| | | | | | | | | * configure.in: Having branched for gnome-2-22, bump version to 2.23.0 for the GNOME 2.23 series. SOUP_API_VERSION will stay at 2.4, which is confusing but seemed like the best solution at this point. svn path=/trunk/; revision=1132
* 2.4.1. Bump AGE and CURRENT.LIBSOUP_2_4_1Dan Winship2008-04-074-3/+85
| | | | | | | | | | * configure.in: 2.4.1. Bump AGE and CURRENT. * NEWS: update * docs/reference/libsoup-2.4-sections.txt: add new symbols svn path=/trunk/; revision=1129
* If pausing a message that was waiting to unpause, cancel the unpause.Dan Winship2008-04-072-0/+10
| | | | | | | * libsoup/soup-message-io.c (soup_message_io_pause): If pausing a message that was waiting to unpause, cancel the unpause. svn path=/trunk/; revision=1128
* Don't cache negative results, even if the DNS server explicitly statesDan Winship2008-04-052-10/+12
| | | | | | | | | | * libsoup/soup-dns.c (resolve_address, resolve_name): Don't cache negative results, even if the DNS server explicitly states that the host does not exist; some servers give different answers to clients inside and outside their firewall. #523269, Jörgen Scheibengruber. svn path=/trunk/; revision=1127
* New, replaces SOUP_MESSAGE_OVERWRITE_CHUNKS, but can be set on either theDan Winship2008-04-0510-50/+231
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-message-body.c (soup_message_body_set_accumulate) (soup_message_body_get_accumulate): New, replaces SOUP_MESSAGE_OVERWRITE_CHUNKS, but can be set on either the incoming or outgoing message body. (soup_message_body_get_chunk): update to still dtrt if !accumulate (soup_message_body_got_chunk, soup_message_body_wrote_chunk): New methods to handle accumulating/discarding chunks. * libsoup/soup-message-io.c (read_body_chunk): Use soup_message_body_got_chunk. (io_write): Use soup_message_body_wrote_chunk, to discard unneeded chunks after writing them. Fixes most of #522146. * libsoup/soup-message.c (soup_message_class_init): add a new flag, "server-side", to indicate whether the message is client-side or server-side, and update several methods to use it. (got_body): Update for accumulate (soup_message_set_flags): If the caller changes OVERWRITE_CHUNKS, update the corresponding accumulate flag. * libsoup/soup-message.h (SOUP_MESSAGE_OVERWRITE_CHUNKS): deprecated now * tests/chunk-test.c (do_request_test): Use soup_message_body_set_accumulate() now, and verify that the chunks are being discarded appropriately. (do_response_test): Use soup_message_body_set_accumulate() instead of OVERWRITE_CHUNKS. * tests/pull-api.c (do_fully_async_test) (do_synchronously_async_test): Use soup_message_body_set_accumulate(). svn path=/trunk/; revision=1126
* fix test for AI_ADDRCONFIG. Noticed while looking at #526321.Dan Winship2008-04-052-1/+6
| | | | | | | * libsoup/soup-dns.c (resolve_address): fix test for AI_ADDRCONFIG. Noticed while looking at #526321. svn path=/trunk/; revision=1125
* globally ignore SIGPIPE rather than only doing it around socket writeDan Winship2008-04-052-9/+14
| | | | | | | | | | | | * libsoup/soup-socket.c (soup_socket_class_init) (soup_socket_write): globally ignore SIGPIPE rather than only doing it around socket write calls, since with SSL even socket read calls may need to write, and also because SIGPIPE is completely moronic and no one should be using it, and the previous "solution" wasn't thread-safe anyway. Fixes #524397, reported by Curtis Magyar. svn path=/trunk/; revision=1124
* Misc fixes noticed by "sparse" or by running gcc with additionalDan Winship2008-04-0525-85/+109
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | -W flags * libsoup/soup-auth-manager-ntlm.c (ntlm_authorize_post): fix a potentially uninitialized variable. (Grumble. gcc needs -Wdo-optimization-so-you-can-generate-code-flow-related-warnings- but-then-emit-unoptimized-code-for-ease-of-debugging) * libsoup/soup-gnutls.c (soup_gnutls_channel_funcs): make this static * libsoup/soup-uri.c (uri_decoded_copy, uri_normalized_copy): add "static". (This doesn't change the generated code; the prototype was already declared static and so gcc was treating the function as static even though the main declaration *wasn't* declared static. I'm not sure if this is a bug in gcc or an oddity of the spec, but it's confusing, so...) * libsoup/soup-xmlrpc.c (soup_xmlrpc_build_method_response): s/FALSE/NULL/ * libsoup/soup-xmlrpc.h: add G_GNUC_PRINTF to soup_xmlrpc_build_format * tests/*.c: misc minor fixes, mostly involving missing "const"s and "static"s to get better warnings, and then remove some unused variables. * tests/continue-test.c (do_message): fix a crash when the test fails * tests/test-utils.h (debug_printf): add G_GNUC_PRINTF to prototype svn path=/trunk/; revision=1123
* Explicitly assign each of the variables to NULL, because that apparentlyDan Winship2008-04-051-0/+2
| | | | | | | | * libsoup/soup-method.c: Explicitly assign each of the variables to NULL, because that apparently causes the OS X linker to treat them differently than if they are left implicitly NULL. #522957. svn path=/trunk/; revision=1122
* Explicitly assign each of the variables to NULL, because that apparentlyDan Winship2008-04-052-16/+26
| | | | | | | | * libsoup/soup-method.c: Explicitly assign each of the variables to NULL, because that apparently causes the OS X linker to treat them differently than if they are left implicitly NULL. #522957. svn path=/trunk/; revision=1121
* add a new signal "wrote-body-data" to address the problem thatDan Winship2008-04-047-15/+453
| | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-message.c: add a new signal "wrote-body-data" to address the problem that "wrote-chunk" is not usable for progress info (especially with non-chunked encoding). #525101, suggested by Christian Kellner. * libsoup/soup-message-io.c (write_data): emit wrote-body-data as appropriate. (io_write): update so that (a) Content-Length writes can be done in multiple chunks (as long as the caller explicitly sets the Content-Length header beforehand), and (b) the body data doesn't get copied an extra time. Based on a patch from Christian. * libsoup/soup-message-client-io.c (get_request_headers): Don't update the Content-Length header if it's already set, even if it doesn't match the (current) body length. * tests/chunk-test.c: test some chunk-encoding-related behavior svn path=/trunk/; revision=1120
* Be more aggressive about closing unused persistent connectionsDan Winship2008-04-033-62/+64
| | | | | | | | | | | | | | when needed, to avoid slow load times in WebKit. * libsoup/soup-session-async.c (run_queue): Remove the "try_pruning" flag from here and from all the callers, and *always* try pruning idle connections if it would help. * libsoup/soup-session.c (soup_session_try_prune_connection): Rather than only closing a single connection, close all idle connections. svn path=/trunk/; revision=1119