summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix test files for atom and RSS to not contain real blog contentcontent-sniffingGustavo Noronha Silva2009-07-022-3506/+34
|
* Make sure params is NULL, for cases in which it is not set.Gustavo Noronha Silva2009-06-301-1/+1
|
* Implement the feed or HTML algorithmGustavo Noronha Silva2009-06-244-0/+3615
|
* Also sniff_unknown when type is */*Gustavo Noronha Silva2009-06-231-1/+2
|
* Make parameters a signal argumentGustavo Noronha Silva2009-06-237-25/+34
| | | | | | Instead of sending the full header as a string in the signal, send only the type, and a hash table with the parameters, matching the get/set_content_type() APIs.
* Also test chunked encodingGustavo Noronha Silva2009-06-231-10/+30
|
* Look for the last occurrence of header in get_one()Gustavo Noronha Silva2009-06-221-2/+8
|
* Test that only the last Content-Type header is usedGustavo Noronha Silva2009-06-221-0/+31
| | | | | The content type sniffing spec says that only the last Content-Type header should be used.
* Fix soup_content_sniffer_sniff return valueGustavo Noronha Silva2009-06-202-5/+5
|
* Also add Content-Type parameters to the return valuesGustavo Noronha Silva2009-06-201-8/+8
| | | | | | When we decide that text/plain is really text/plain, or simply return the same type the server sent, use the header with parameters included.
* Nitpicky stuffDan Winship2009-06-202-76/+75
|
* Add tests/sniffing-test to .gitignore and make checkDan Winship2009-06-202-0/+2
|
* Fix a bug in the gio fallbackDan Winship2009-06-201-1/+1
|
* Use GIO to further sniff unknown contentGustavo Noronha Silva2009-06-182-23/+47
| | | | | | | | The HTML5 spec allows user agents to further sniff the content if the normal 'unknown' algorithm isn't able to find a type, before going with 'application/octet-stream'. This change uses the already existing sniff_gio code to perform that sniffing, and also fixes the default behavior of sniffing to be return the type given by the server.
* Implementing the images sniffing pathGustavo Noronha Silva2009-06-182-4/+51
| | | | | This part of the algorithm is basically checking against the type table just for image types.
* Implement XML-based types sniffingGustavo Noronha Silva2009-06-182-10/+46
| | | | | Basically, any XML type will be trusted as being correctly given by the server.
* Refactor the handling of the unknown path, to handle more casesGustavo Noronha Silva2009-06-182-38/+83
| | | | | | The unknown handling was first written for the text or binary algorithm, but it is also used stand-alone, when handling empty, unknown/unknown, or application/unknown content types.
* Add the text/plain types to the type checking tableGustavo Noronha Silva2009-06-181-1/+20
|
* Initial implementation of the Text or Binary algorithmGustavo Noronha Silva2009-06-186-14/+339
| | | | | | | | This is a very simply written implementation of the HTML5 algorithm that sniffs content when the server says it is 'text/plain'. It detects if the content seems to be binary using a simple test table, and avoids privilege escalation from text/plain to types known to be scriptable. Tests included.
* Ground work for content sniffing capabilitiesGustavo Noronha Silva2009-06-1712-4/+637
| | | | | | This is the initial work required to implement content sniffing in libsoup. This first commit provides the new SoupContentSniffer feature, and hooks it into the message IO code.
* 2.27.2LIBSOUP_2_27_2Dan Winship2009-06-162-1/+62
|
* Remove -r flag from tests/getDan Winship2009-06-091-182/+16
| | | | | | The requirement that it imposed--that we "guess" the name of the index file when fetching a URL that ended with "/"--is more annoying than the usefulness of being able to test multiple downloads at once.
* add a HACKING file with some initial notes on code style and correctnessDan Winship2009-06-081-0/+66
|
* Add "Content-Length: 0" to requests with a Content-Type but no bodyDan Winship2009-06-061-1/+2
| | | | | | Some servers get annoyed if a POST/PUT declares a Content-Type but contains no body, so make sure to send a 0-length body (which is different) instead.
* Implement SoupProxyURIResolver, to replace SoupProxyResolverDan Winship2009-06-0616-185/+537
| | | | | | | Simplifies implementations, allows for non-http proxy resolution, and allows authentication information to be passed. http://bugzilla.gnome.org/show_bug.cgi?id=580051
* SoupConnection/SoupSession reorg and cleanupDan Winship2009-06-0611-551/+420
| | | | | | | Move CONNECT handling from SoupConnection to SoupSession so it works more like other requests. Generally clean up and simplify SoupConnection, and simplify the coordination between SoupSession and its subclasses.
* Fix hostname resolution behaviorDan Winship2009-06-069-119/+107
| | | | | | | | | | | | | | | | | | | | | Previously we went to some effort to resolve the message URI hostname to an IP address before figuring out proxies/connections, but this turns out to be wrong for multiple reasons: 1. Some hosts that send all requests via proxy don't even have a working DNS config. (http://bugzilla.gnome.org/show_bug.cgi?id=577532) 2. Apparently no one expects hostnames in requests to be matched against IP addresses in proxy ignore lists anyway. 3. The big web browsers all implement connection limits on a per-hostname basis, not a per-IP basis, and some web pages take advantage of this by using multiple aliases for the same host to get around the connection limit. Also update tests/proxy-test to verify that the hostname is not resolved when passing a request to a proxy.
* More temporary SSL tweakingDan Winship2009-06-031-1/+1
| | | | | | | | Disable TLS 1.0 too, since some sites don't even support that (I'm looking at you, PayPal). Eventually we'll want to make this be more clever, and have it first try TLS 1.1 with extensions, and then fall back to SSL 3.0 if the server gets confused by the new stuff. But that will take some rewriting.
* Include the (optional) algorithm param in Digest auth responsesDan Winship2009-06-011-1/+5
| | | | | Apple's CalDAV server apparently considers it mandatory. http://bugzilla.gnome.org/show_bug.cgi?id=583091
* Use POSIXly-correct "test a = b" rather than bash "test a == b"Dan Winship2009-06-011-1/+1
| | | | Stupid bash. http://bugzilla.gnome.org/show_bug.cgi?id=583911
* Update REQUIRED_AUTOMAKE_VERSION to match realityDan Winship2009-06-011-1/+1
| | | | http://bugzilla.gnome.org/show_bug.cgi?id=583942
* Don't emit "authenticate" until a message is actually sent and fails.Dan Winship2009-05-212-21/+68
| | | | | | | | | | | | | | | | | In some cases, we're reasonably sure it's going to fail if we don't emit authenticate, but forcing callers to deal with both the pre-sending and post-sending cases in their authenticate handlers makes writing them tricky. (In particular, calling soup_message_io_pause() in the pre-sending case won't work, since the message hasn't actually started yet.) This also solves the problem that we were previously emitting "authenticate" both before and after the message was sent in some cases. Add a regression test for this case (written by Gustavo Noronha, who figured out the circumstances where the bug was happening), and tweak the existing regression tests to match the new rules. http://bugzilla.gnome.org/show_bug.cgi?id=583462
* Temporarily redo the TLS compatibility patchDan Winship2009-05-181-2/+1
| | | | | | It broke tests/ssl-test on machines that support %SSL3_RECORD_VERSION. For now, we will just not use that flag, and instead always disable TLS 1.1. The gnutls problem has been reported upstream.
* Don't set AI_CANONNAME when calling getaddrinfo()Dan Winship2009-05-181-3/+1
| | | | | | We weren't using the information it generated, so it had no effect besides slowing things down with additional DNS traffic. Pointed out by Christophe Gillette on libsoup-list.
* Fix a warning introduced in fix for bug 582002Dan Winship2009-05-151-2/+2
|
* Fix cflags to work with older versions of gccDan Winship2009-05-151-2/+14
| | | | | | | Check that gcc supports -Wmissing-include-dirs and -Wundef rather than using them unconditionally. http://bugzilla.gnome.org/show_bug.cgi?id=578851
* Fix the header/body boundary detection logicDan Winship2009-05-091-1/+9
| | | | | | | | | The change to support LF LF in addition to CRLF CRLF broke this subtly so that if the first network read returned a packet that ended at a CR, then the following LF would be mistakenly interpreted as ending the headers. http://bugzilla.gnome.org/show_bug.cgi?id=582002
* Attempt better compatibility with non-TLS1.1 https servers.Dan Winship2009-05-081-1/+3
| | | | | | | | | | | | Try to use the (not-yet-widely-deployed) SSL3_RECORD_VERSION option in gnutls to make it handshake according to the backward-compatibility recommendations in the TLS spec. If that fails, fall back to just disabling TLS1.1. Should hopefully help us to work better with servers that freak out if you even suggest using TLS1.1. Fix based on a Pidgin patch from Martin von Gagern. http://bugzilla.gnome.org/show_bug.cgi?id=581342
* Add another missing G_GNUC_NULL_TERMINATED and a G_GNUC_PRINTFDan Winship2009-05-082-2/+2
|
* Mark soup_uri_set_query_from_fields with G_GNUC_NULL_TERMINATEDRoss Burton2009-05-081-1/+1
| | | | http://bugzilla.gnome.org/show_bug.cgi?id=581754
* Handle PUT methods in soup_form_request_for_dataRoss Burton2009-05-081-1/+1
| | | | http://bugzilla.gnome.org/show_bug.cgi?id=581860
* NEWS: fix a bug number that was typoedDan Winship2009-05-051-1/+1
|
* 2.27.1LIBSOUP_2_27_1Dan Winship2009-05-042-1/+36
|
* Fix typo in documentation: TIME should be TYPE.Pierre-Luc Beaudoin2009-05-031-1/+1
|
* Fix a crash when cancelling a message from a "restarted" handlerDan Winship2009-04-282-1/+2
| | | | | | | | | SoupSessionAsync was mistakenly leaving its own "restarted" handler connected even after "finished" was emitted. misc-test was supposed to catch that, but it was using SoupSessionSync rather than Async. Changed it to use Async since Async adds some signal handlers of its own, while Sync does not. Fixes #380193, reported by Gustavo Noronha
* Fix mbox to be a mailtoDan Winship2009-04-281-1/+1
|
* Verify that soup_auth_is_for_proxy() is returning the right thingDan Winship2009-04-281-3/+19
|
* Belatedly move Changelog to Changelog.pre-git, update for thatDan Winship2009-04-243-2/+2
|
* Add a missing file to .gitignoreDan Winship2009-04-241-0/+1
|
* header-parsing.c: Add tests for new bad-header-parsing rulesDan Winship2009-04-191-28/+61
|