Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Unified Diff: third_party/WebKit/LayoutTests/inspector/curl-command-expected.txt

Issue 2182213006: [Devtools] Fix multi-line curl copy response when multi-part-form (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed windows curl with multi-line Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/inspector/curl-command-expected.txt
diff --git a/third_party/WebKit/LayoutTests/inspector/curl-command-expected.txt b/third_party/WebKit/LayoutTests/inspector/curl-command-expected.txt
index f44d5bc6232b9632b8d385b21cd658df0dc3a82d..e53a654f079d27a0ea62756f6e238fba099f3bf8 100644
--- a/third_party/WebKit/LayoutTests/inspector/curl-command-expected.txt
+++ b/third_party/WebKit/LayoutTests/inspector/curl-command-expected.txt
@@ -1,13 +1,45 @@
Tests curl command generation
-curl 'http://example.org/path' --compressed
-curl 'http://example.org/path' --data-binary '123' --compressed
-curl 'http://example.org/path' -H 'Content-Type: application/x-www-form-urlencoded' --data '1&b' --compressed
-curl 'http://example.org/path' -H 'Content-Type: application/json' --data-binary '{"a":1}' --compressed
-curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'1234\r\n00\x02\x03\x04\x05\'"!' --compressed
-curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'1234\r\n\x0100\x02\x03\x04\x05\'"!' --compressed
-curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'\x7f\x80\x90\xff\x09\u0700' --compressed
-curl 'http://labs.ft.com/?querystring=\[\]\{\}' --compressed
-curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary '%PATH%$PATH' --compressed
-curl 'http://example.org/path' --compressed
+Windows: curl "http://example.org/path" --compressed
+Unix: curl 'http://example.org/path' --compressed
+Windows: curl "http://example.org/path" --data-binary "123" --compressed
+Unix: curl 'http://example.org/path' --data-binary '123' --compressed
+Windows: curl "http://example.org/path" -H "Content-Type: application/x-www-form-urlencoded" --data "1^&b" --compressed
+Unix: curl 'http://example.org/path' -H 'Content-Type: application/x-www-form-urlencoded' --data '1&b' --compressed
+Windows: curl "http://example.org/path" -H "Content-Type: application/json" --data-binary "^{^\^"a^\^":1^}" --compressed
+Unix: curl 'http://example.org/path' -H 'Content-Type: application/json' --data-binary '{"a":1}' --compressed
+Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"1234^
+
+00^^^^'^\^"^!^" --compressed
+Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'1234\r\n00\x02\x03\x04\x05\'"!' --compressed
+Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"1234^
+
+^00^^^^'^\^"^!^" --compressed
+Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'1234\r\n\x0100\x02\x03\x04\x05\'"!' --compressed
+Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"^%^OS^%^
+
+^%^%^OS^%^%^
+
+^\^"^\^\^\^"'^$^&^!^" --compressed
+Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'%OS%\r\n%%OS%%\r\n"\\"\'$&!' --compressed
+Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"^!^@^#^$^%^^^&*()_+~`1234567890-=^[^]^{^};':^\^",./^
+
+^<^>?^
+
+qwer^
+
+t^
+
+^
+
+yuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM^" --compressed
+Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'!@#$%^&*()_+~`1234567890-=[]{};\':",./\r<>?\r\nqwer\nt\n\nyuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM' --compressed
+Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary "^^€^^ÿ ^܀" --compressed
+Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'\x7f\x80\x90\xff\x09\u0700' --compressed
+Windows: curl "http://labs.ft.com/?querystring=^\[^\]^\{^\}" --compressed
+Unix: curl 'http://labs.ft.com/?querystring=\[\]\{\}' --compressed
+Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary "^%^PATH^%^$PATH" --compressed
+Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary '%PATH%$PATH' --compressed
+Windows: curl "http://example.org/path" --compressed
+Unix: curl 'http://example.org/path' --compressed

Powered by Google App Engine
This is Rietveld 408576698