| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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).
|
| |
|
| |
|
|
|
|
| |
https://bugzilla.gnome.org/show_bug.cgi?id=655397
|
|
|
|
|
|
|
|
| |
Some servers require that Content-Disposition headers use
quoted-string values, even if the provided filename can be represented
as a token. So use soup_header_g_string_append_param_quoted(), but also
change that to fall back to using RFC 5987 encoding if necessary, so
that we can still specify UTF-8-encoded filenames.
|
|
|
|
|
|
|
| |
The HTML 4.01 spec says you have to, but apparently no one else does,
and it confuses some servers.
https://bugzilla.gnome.org/show_bug.cgi?id=614198
|
|
|
|
|
|
|
| |
HTTP multiparts should have no preamble, so it shouldn't have the
leading CRLF either
https://bugzilla.gnome.org/show_bug.cgi?id=614183
|
|
|
|
|
|
|
|
|
|
| |
RFC 2616 warns that some HTTP implementations misparse quoted boundary
parameters in multipart Content-Type headers. (Sigh.) Since our
boundary strings are tokens, they don't need to be quoted anyway
(although if we parse and then later reserialize a multipart generated
by someone else, we may still need to quote it).
https://bugzilla.gnome.org/show_bug.cgi?id=614176
|
|
|
|
|
|
|
|
| |
Previously we were using strstr() to find the multipart boundary, so
it would fail if the body contained '\0' bytes. Update
tests/forms-test to test this case.
https://bugzilla.gnome.org/show_bug.cgi?id=601640
|
|
|
|
| |
Noticed by Xan Lopez while looking for a different leak.
|
|
|
|
|
|
|
| |
* libsoup/*.c: gtk-doc updates. In particular, document a bunch of
convenience #defines, and add "Since" tags where appropriate.
svn path=/trunk/; revision=1246
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* libsoup/soup-message-headers.c (set_content_foo): don't leak the
header string
* libsoup/soup-multipart.c (generate_boundary): avoid a (harmless)
valgrind warning
* libsoup/soup-proxy-resolver-static.c (get_proxy_sync): don't
leak the address on error
* libsoup/soup-session-sync.c (wait_for_connection): don't leak
proxy_addr
* tests/misc-test.c: don't leak the SoupMessage signal ids
* tests/range-test.c (main): don't leak base_uri
* tests/libsoup.supp: update this using lots and lots of wildcards
svn path=/trunk/; revision=1197
|
|
* libsoup/soup-multipart.c: New type and methods for working with
multipart HTTP bodies (eg, multipart/form-data and
multipart/byte-ranges)
* libsoup/soup-message-headers.c (soup_message_headers_get_ranges)
(soup_message_headers_set_ranges)
(soup_message_headers_set_range)
(soup_message_headers_get_content_range)
(soup_message_headers_set_content_range): New methods for dealing
with the Range and Content-Range headers.
* libsoup/soup-form.h (SOUP_FORM_MIME_TYPE_URLENCODED)
(SOUP_FORM_MIME_TYPE_MULTIPART): #define these MIME types here
* libsoup/soup-form.c (soup_form_decode_multipart): new utility
for parsing multipart/form-data forms.
(soup_form_request_new_from_multipart): new utility for
constructing multipart/form-data forms
* libsoup/soup-headers.c (soup_headers_parse): this is now
non-static, for use by soup-multipart
* libsoup/soup-message-server-io.c (get_response_headers)
(handle_partial_get): if the client requested a partial GET, and
the SoupServer is returning the full body, rebuild the response to
include only the requested range instead
* tests/forms-test.c: renamed from query-test and updated to do
both application/x-www-form-urlencoded and multipart/form-data
tests
* tests/range-test.c: test of Range/Content-Range functionality
svn path=/trunk/; revision=1176
|