summaryrefslogtreecommitdiff
path: root/tests/forms-test.c
AgeCommit message (Collapse)AuthorFilesLines
2021-01-29Imported Upstream version 2.72.0upstream/2.72.0upstreamSeonah Moon1-12/+12
Change-Id: I026585438031f2cf6255822fdd432796c398efe3
2019-12-09Imported Upstream version 2.62.2upstream/2.62.2Seonah Moon1-11/+13
Change-Id: Id151dafaa6ac9f569d76f08282b5c9e4c3b19621
2014-11-04Imported Upstream version 2.46.0upstream/2.46.0Zhang zhengguang1-90/+86
2013-02-19tests: do skipped tests properlyDan Winship1-0/+12
automake interprets exit code 77 as meaning "skipped", so have the various apache-dependent, php-dependent, and curl-dependent tests do that, and compile them unconditionally. (Although, to avoid "unused" warnings, we end up #ifdeffing out the whole file.)
2012-07-13Clean up includesDan Winship1-18/+2
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).
2011-11-05SoupSession: add some API for handling redirectionsDan Winship1-3/+1
2011-03-11tests: remove a redundant GOptionEntry flag that now causes a warningDan Winship1-1/+1
2011-01-18Add test for soup_form_decode().Sven Neumann1-0/+32
Add a test that checks how soup_form_decode() handles multiple values with the same key.
2010-06-11Allow calling soup_test_server_new() multiple times in test programsDan Winship1-0/+1
2009-11-21soup_multipart_new_from_message: fix to work with binary attachmentsDan Winship1-7/+13
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
2009-03-27 Bug 576583 - Tests fail if "localhost" resolves to ::1Dan Winship1-2/+2
* tests/*.c: Use "127.0.0.1" in URIs rather than "localhost", since the default SoupServer config only listen on IPv4 (qv bug 522519), and tests/httpd.conf.in only configures apache to listen on IPv4, and we don't handle multiple IP addresses (qv bug 526321) but the machine might be configured to return "::1" rather than "127.0.0.1" first for "localhost". Patch from Andreas Rottmann. svn path=/trunk/; revision=1257
2008-12-23add some more warning CFLAGS, inspired by Benjamin Otte's blog post,Dan Winship1-2/+2
* configure.in: add some more warning CFLAGS, inspired by Benjamin Otte's blog post, although none of them picked out any actual bugs. Annoyingly, the most interesting warnings came from -Wwrite-strings and -Wshadow, both of which I decided against keeping, because they had too many false positives. * libsoup/soup-cookie-jar.c (soup_cookie_jar_get_cookies): rename a variable to avoid shadowing. * libsoup/soup-message-headers.c (soup_message_headers_get_ranges): move a variable declaration to avoid a possibly-confusing shadowing. * tests/forms-test.c: * tests/header-parsing.c: * tests/range-test.c: * tests/test-utils.c: constify some "char *"s that should have already been const. * tests/get.c (find_hrefs): rename an arg whose name shadowed a global, to avoid possible future confusion (get_url): Likewise with a functional-internal shadowing. svn path=/trunk/; revision=1222
2008-12-05Correctly handle forms that have URI-encoded parameter names. #563302,Dan Winship1-3/+3
* libsoup/soup-form.c (soup_form_decode): Correctly handle forms that have URI-encoded parameter names. #563302, Evan Nemerson. * tests/forms-test.c: test that svn path=/trunk/; revision=1220
2008-10-01New type and methods for working with multipart HTTP bodies (eg,Dan Winship1-0/+432
* 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