summaryrefslogtreecommitdiff
path: root/libsoup/soup-status.c
Commit message (Collapse)AuthorAgeFilesLines
* Rename SoupKnownStatusCode to SoupStatusDan Winship2013-07-131-4/+11
| | | | | | | | | | Rename SoupKnownStatusCode to SoupStatus (so that the type name matches the enum values), and then, for backward-compatibility, add a new SoupKnownStatusCode enum with equivalent values so that introspection-using code that was doing "SoupKnownStatusCode.OK", etc, will still work. https://bugzilla.gnome.org/show_bug.cgi?id=684409
* Clean up includesDan Winship2012-07-131-3/+4
| | | | | | | | 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).
* Lots of gtk-doc fixes (no code changes)Dan Winship2011-09-221-7/+7
|
* Default to TLS for https connections, and fall back to SSLv3 on failureDan Winship2011-08-071-1/+2
| | | | | | | | | Rather than always using SSLv3, try proper TLS+extensions first, and fall back to SSLv3-without-extensions if that gives an error that looks like it might mean "broken SSLv3-only server". Use SoupSessionHost to record the fallback status for a host. https://bugzilla.gnome.org/show_bug.cgi?id=581342
* SoupSocket: port to GSocketConnection/GTlsConnectionDan Winship2010-12-071-4/+0
| | | | and remove libsoup's built-in TLS support, which is no longer needed
* soup-status.c: #include config.h to get HAVE_SSL defineDan Winship2010-06-091-0/+2
| | | | | Now SOUP_STATUS_SSL will have the the reason phrase "SSL handshake failed" instead of "SSL support not available" when SSL was available.
* SoupSession: count redirections and cancel the message after too manyJosé Millán Soto2010-06-081-0/+2
| | | | | | and add a test to redirect-test https://bugzilla.gnome.org/show_bug.cgi?id=604383
* Fix for proxies that close the connection when 407'ing a CONNECTDan Winship2010-04-101-1/+1
| | | | | | | | | | | | | | | If we try to CONNECT through a proxy, and it returns a "407 Proxy Authentication Required" but then closes the connection, we have to create a new connection before we can try CONNECTing again. The old soup-connection.c tunnel code did this, but it got accidentally lost in the soup-session.c version. Fix up tests/proxy-test to test both the connection-close and the persistent-connection cases. This was the underlying bug in https://bugzilla.gnome.org/show_bug.cgi?id=611663, and is at least part of https://bugzilla.gnome.org/show_bug.cgi?id=611539.
* Fix error code when trying to https with --disable-sslDan Winship2009-08-091-0/+4
| | | | http://bugzilla.gnome.org/show_bug.cgi?id=590464
* add more detail to the doc commentDan Winship2009-03-111-11/+31
| | | | | | | | | | | | | | | | * libsoup/soup-session.c (soup_session_cancel_message): add more detail to the doc comment * libsoup/soup-message.c (SoupMessage): Note in the doc comment that reason phrases are not very useful, and should not be presented to the user. * libsoup/soup-status.c: add a comment explaining why reason phrases aren't localized. Also some misc doc fixes. (soup_status_get_phrase): Note in the doc comment that you shouldn't present reason phrases to the user. svn path=/trunk/; revision=1248
* gtk-doc updates. In particular, document a bunch of convenience #defines,Dan Winship2009-03-081-0/+10
| | | | | | | * libsoup/*.c: gtk-doc updates. In particular, document a bunch of convenience #defines, and add "Since" tags where appropriate. svn path=/trunk/; revision=1246
* misc doc fixesDan Winship2008-11-041-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-address.c (soup_address_is_resolved): * libsoup/soup-cookie.c (soup_cookie_copy): * libsoup/soup-cookie-jar.c (soup_cookie_jar_class_init): * libsoup/soup-message-headers.c (SoupMessageHeadersType): * libsoup/soup-proxy-resolver.c (soup_proxy_resolver_get_proxy_async) (soup_proxy_resolver_get_proxy_sync): * libsoup/soup-status.c (soup_status_proxyify): misc doc fixes * libsoup/soup-cookie-jar-text.h: remove a "deprecated" API that was never actually released * libsoup/soup.h: include soup-proxy-resolver.h * docs/reference/Makefile.am (SCAN_OPTIONS): set --deprecated-guards correctly (IGNORE_HFILES): ignore some more internal files (GTKDOC_LIBS): link against libsoup-gnome, not libsoup * docs/reference/libsoup-2.4-docs.sgml: * docs/reference/libsoup-2.4.types: * docs/reference/libsoup-2.4-sections.txt: add new stuff svn path=/trunk/; revision=1201
* new abstract base class for a SoupSessionFeature that determines whatDan Winship2008-10-311-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-proxy-resolver.c: new abstract base class for a SoupSessionFeature that determines what proxy to use for a given URI. * libsoup/soup-proxy-resolver-static.c: a SoupProxyResolver that always returns the same value. * libsoup/soup-session.c (set_property, get_property): implement the SOUP_SESSION_PROXY_URI property by creating/destroying a SoupProxyResolverStatic as needed. (soup_session_get_connection): Use the proxy address passed by the caller rather than priv->proxy_uri. * libsoup/soup-session-async.c (run_queue): if the session has a proxy resolver, use it, and pass the resolved proxy to soup_session_get_connection(). (request_restarted): clear the previously-resolved proxy address when restarting the message * libsoup/soup-session-sync.c (wait_for_connection): if the session has a proxy resolver, use it, and pass the resolved proxy to soup_session_get_connection(). * libsoup/soup-message-queue.h (SoupMessageQueueItem): add proxy-address-resolving fields * libsoup/soup-status.c (soup_status_proxify): moved from soup-connection; turn SOUP_STATUS_CANT_RESOLVE into SOUP_STATUS_CANT_RESOLVE_PROXY, and SOUP_STATUS_CANT_CONNECT into SOUP_STATUS_CANT_CONNECT_PROXY (and pass all other statuses through unchanged) svn path=/trunk/; revision=1192
* mark the DES magic number arrays constDan Winship2008-02-091-1/+1
| | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-auth-manager-ntlm.c: mark the DES magic number arrays const * libsoup/soup-date.c (months, days): add an extra "const" to each of these declarations, as one "const" is apparently not enough. (soup_date_to_time_t): remove redundant copy of days_before array. * libsoup/soup-dns.c (soup_dns_init): use g_once_init_enter/leave * libsoup/soup-gnutls.c (soup_ssl_supported) (soup_gnutls_channel_funcs): Mark these const (soup_gnutls_init, init_dh_params): Use g_once_init_enter/leave * libsoup/soup-status.c (reason_phrases): mark this const * tests/ssl-test.c: Remove the workaround for soup_gnutls_init() not being thread-safe, since it is now. svn path=/trunk/; revision=1080
* Merge libsoup-2.4 branch to trunkDan Winship2008-01-151-0/+153
| | | | | | * Merge libsoup-2.4 branch to trunk svn path=/trunk/; revision=1041
* Add some missing "static"s. Patch from Matthias Clasen, #376387Dan Winship2006-11-201-1/+1
| | | | | | | * libsoup/soup-connection-ntlm.c (send_request): * libsoup/soup-session-sync.c (queue_message): * libsoup/soup-status.c (reason_phrases): Add some missing "static"s. Patch from Matthias Clasen, #376387
* add/fix lots of gtk-doc commentsDan Winship2004-08-261-0/+8
| | | | | | | | | | | | | | | * libsoup/*: add/fix lots of gtk-doc comments * libsoup/soup-misc.c (soup_str_case_hash, soup_str_case_equal): Fix bug noticed while documenting. (We were using the locale-case-insensitive functions rather than the g_ascii_ ones.) * libsoup/soup-message.h (SoupMessageFlags): remove the (never implemented) NO_PIPELINE and NO_COOKIE flags. * docs/reference/tmpl/*.sgml: Regenerate, fill in some stuff. There are still problems here with gtk-doc not recognizing many of the objects in libsoup...
* New. An interface for objects that want to act on every message passingDan Winship2003-12-191-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libsoup/soup-message-filter.c: New. An interface for objects that want to act on every message passing through a session. (Initially being used for authentication, but could also be used for cache handling, cookie management, etc.) * libsoup/soup-connection.c (class_init, etc): Add a message filter property. (send_request): If the connection has a message filter set, run it on the message before sending it. (soup_connection_connect_async, etc): When setting up a tunnel, if we get back a 407 and the session tries to requeue the message, either re-send it, or return SOUP_STATUS_TRY_AGAIN (depending on whether or not the proxy closed the connection). (soup_connection_connect_sync): Likewise (send_request, request_done): Ref/unref the connection * libsoup/soup-session.c (soup_session_get_type): Implement the SoupMessageFilter interface. (soup_session_get_connection): Use the session as the connection's message filter (soup_session_add_filter, soup_session_remove_filter): Add/remove filters from the session (setup_message): do auth handling, and call each of the session's filters' setup_message methods as well. (soup_session_send_message_via): No longer needed. (connect_result): Handle SOUP_STATUS_TRY_AGAIN. * libsoup/soup-session-async.c (run_queue): Use soup_connection_send_request, since soup_session_send_message_via is gone now. * libsoup/soup-session-sync.c (send_message): Likewise * libsoup/soup-message.c (soup_message_is_keepalive): A successful response to a CONNECT is always keepalive, even if it's HTTP/1.0 with no Connection header. * libsoup/soup-status.h: add SOUP_STATUS_TRY_AGAIN * libsoup/soup-types.h: Add SoupMessageFilter, and macros for gobject interface types. * tests/get.c (main): Add a -p flag to specify a proxy * tests/simple-proxy.c: Fix #includes
* Renamed from soup-error.h, with types and defines renamed accordingly.Dan Winship2003-09-031-0/+97
* libsoup/soup-status.h: Renamed from soup-error.h, with types and defines renamed accordingly. * libsoup/soup-message.h (SoupMessage): Rename errorcode to status_code and errorphrase to reason_phrase. Remove errorclass. (SOUP_MESSAGE_IS_ERROR): Remove this. You can't classify redirects as being either "errors" or "not errors", so its semantics are guaranteed to be wrong sometimes. * libsoup/soup-message.c (soup_message_set_status, soup_message_set_status_full): Renamed * libsoup/soup-message-handlers.c (soup_message_add_status_code_handler, soup_message_add_status_class_handler): Rename. * libsoup/soup-session.c (soup_session_send_message): Make this return a status code rather than a status class. * libsoup/soup-message-private.h (SoupMessagePrivate): Remove some unrelated unused fields (retries, callback, user_data). * ...: Updates