summaryrefslogtreecommitdiff
path: root/libsoup/soup-multipart.c
Commit message (Collapse)AuthorAgeFilesLines
* Clean up includesDan Winship2012-07-131-1/+1
| | | | | | | | 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).
* Use G_DEFINE_INTERFACE and G_DEFINE_BOXED_TYPEDan Winship2012-07-131-14/+1
|
* Use g_ptr_array_new_with_free_func()Dan Winship2012-07-131-8/+2
|
* Soup-2.4.gir: add missing introspection data from Vala bindingsEvan Nemerson2011-08-041-2/+4
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=655397
* soup-multipart: Fix generation of Content-Disposition for broken serversDan Winship2011-04-071-2/+2
| | | | | | | | 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.
* soup-multipart: don't use Content-Transfer-Encoding in multipart/form-dataDan Winship2010-04-091-14/+0
| | | | | | | 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
* soup-multipart: remove extra CRLF before multipart bodyDan Winship2010-04-091-1/+2
| | | | | | | HTTP multiparts should have no preamble, so it shouldn't have the leading CRLF either https://bugzilla.gnome.org/show_bug.cgi?id=614183
* soup-multipart: don't quote the boundary string if it doesn't need itDan Winship2010-04-091-7/+7
| | | | | | | | | | 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
* soup_multipart_new_from_message: fix to work with binary attachmentsDan Winship2009-11-211-15/+26
| | | | | | | | 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
* Fix some leaks in the error cases of soup_multipart_new_from_message()Dan Winship2009-08-241-0/+4
| | | | Noticed by Xan Lopez while looking for a different leak.
* gtk-doc updates. In particular, document a bunch of convenience #defines,Dan Winship2009-03-081-0/+20
| | | | | | | * libsoup/*.c: gtk-doc updates. In particular, document a bunch of convenience #defines, and add "Since" tags where appropriate. svn path=/trunk/; revision=1246
* don't leak the header stringDan Winship2008-11-031-0/+4
| | | | | | | | | | | | | | | | | | | | | | * 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
* New type and methods for working with multipart HTTP bodies (eg,Dan Winship2008-10-011-0/+482
* 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