Commit 1a0a551c authored by Jan Scheffler's avatar Jan Scheffler Committed by Commit Bot

[DevTools] Reenable test for network log copy menu

This cl updates the testreults for crrev.com/c/1967136.

Bug: chromium:1029826
Change-Id: Icb60e1bf3e45a6f07e83702255e11903c0afe39c
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1967244
Commit-Queue: Jan Scheffler <janscheffler@chromium.org>
Reviewed-by: default avatarYang Guo <yangguo@chromium.org>
Cr-Commit-Position: refs/heads/master@{#728235}
parent 2977ed92
...@@ -6074,7 +6074,6 @@ crbug.com/993790 virtual/document-policy/external/wpt/document-policy/required-p ...@@ -6074,7 +6074,6 @@ crbug.com/993790 virtual/document-policy/external/wpt/document-policy/required-p
# Temporary suppression to allow devtools-frontend changes # Temporary suppression to allow devtools-frontend changes
crbug.com/1029489 http/tests/devtools/elements/elements-linkify-attributes.js [ Pass Failure ] crbug.com/1029489 http/tests/devtools/elements/elements-linkify-attributes.js [ Pass Failure ]
crbug.com/1029826 http/tests/devtools/copy-network-request.js [ Pass Failure ]
crbug.com/1029521 virtual/threaded/external/wpt/web-animations/timing-model/animations/updating-the-finished-state.html [ Pass Failure Timeout ] crbug.com/1029521 virtual/threaded/external/wpt/web-animations/timing-model/animations/updating-the-finished-state.html [ Pass Failure Timeout ]
crbug.com/1030258 http/tests/devtools/network/network-cookies-pane.js [ Pass Failure ] crbug.com/1030258 http/tests/devtools/network/network-cookies-pane.js [ Pass Failure ]
......
Tests curl command generation Tests curl command generation
cURL Windows: curl "http://example.org/path" --compressed cURL Windows:
cURL Unix: curl 'http://example.org/path' --compressed curl "http://example.org/path" --compressed
Powershell: Invoke-WebRequest -Uri "http://example.org/path"
fetch: fetch("http://example.org/path", {"credentials":"omit","method":"GET","mode":"cors"});
cURL Windows: curl "http://example.org/path" --data-binary "123" --compressed cURL Unix:
cURL Unix: curl 'http://example.org/path' --data-binary '123' --compressed curl 'http://example.org/path' --compressed
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Method "POST" -Body "123"
fetch: fetch("http://example.org/path", {"credentials":"omit","body":"123","method":"POST","mode":"cors"});
cURL Windows: curl "http://example.org/path" -H "Content-Type: application/x-www-form-urlencoded" --data "1^&b" --compressed Powershell:
cURL Unix: curl 'http://example.org/path' -H 'Content-Type: application/x-www-form-urlencoded' --data '1&b' --compressed Invoke-WebRequest -Uri "http://example.org/path"
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Method "POST" -ContentType "application/x-www-form-urlencoded" -Body "1&b"
fetch: fetch("http://example.org/path", {"credentials":"omit","headers":{"content-type":"application/x-www-form-urlencoded"},"body":"1&b","method":"POST","mode":"cors"});
cURL Windows: curl "http://example.org/path" -H "Content-Type: application/json" --data-binary "^{^\^"a^\^":1^}" --compressed fetch (for browser):
cURL Unix: curl 'http://example.org/path' -H 'Content-Type: application/json' --data-binary '{"a":1}' --compressed fetch("http://example.org/path", {
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Method "POST" -ContentType "application/json" -Body "{`"a`":1}" "method": "GET",
fetch: fetch("http://example.org/path", {"credentials":"omit","headers":{"content-type":"application/json"},"body":"{\"a\":1}","method":"POST","mode":"cors"}); "mode": "cors",
cURL Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"1234^ "credentials": "omit"
});
00^^^^'^\^"^!^" --compressed
cURL Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'1234\r\n00\u0002\u0003\u0004\u0005\'"\u0021' --compressed
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Method "POST" -ContentType "application/binary" -Body ([System.Text.Encoding]::UTF8.GetBytes("1234$([char]13)$([char]10)00$([char]2)$([char]3)$([char]4)$([char]5)'`"!")) fetch (for nodejs):
fetch: fetch("http://example.org/path", {"credentials":"omit","headers":{"content-type":"application/binary"},"body":"1234\r\n00\u0002\u0003\u0004\u0005'\"!","method":"POST","mode":"cors"}); fetch("http://example.org/path", {
cURL Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"1234^ "method": "GET",
"mode": "cors"
^00^^^^'^\^"^!^" --compressed });
cURL Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'1234\r\n\u000100\u0002\u0003\u0004\u0005\'"\u0021' --compressed
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Method "POST" -ContentType "application/binary" -Body ([System.Text.Encoding]::UTF8.GetBytes("1234$([char]13)$([char]10)$([char]1)00$([char]2)$([char]3)$([char]4)$([char]5)'`"!"))
fetch: fetch("http://example.org/path", {"credentials":"omit","headers":{"content-type":"application/binary"},"body":"1234\r\n\u000100\u0002\u0003\u0004\u0005'\"!","method":"POST","mode":"cors"}); cURL Windows:
cURL Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"^%^OS^%^ curl "http://example.org/path" ^
--data-binary "123" ^
--compressed
cURL Unix:
curl 'http://example.org/path' \
--data-binary '123' \
--compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" `
-Method "POST" `
-Body "123"
fetch (for browser):
fetch("http://example.org/path", {
"body": "123",
"method": "POST",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"body": "123",
"method": "POST",
"mode": "cors"
});
cURL Windows:
curl "http://example.org/path" ^
-H "Content-Type: application/x-www-form-urlencoded" ^
--data "1^&b" ^
--compressed
cURL Unix:
curl 'http://example.org/path' \
-H 'Content-Type: application/x-www-form-urlencoded' \
--data '1&b' \
--compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" `
-Method "POST" `
-ContentType "application/x-www-form-urlencoded" `
-Body "1&b"
fetch (for browser):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/x-www-form-urlencoded"
},
"body": "1&b",
"method": "POST",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/x-www-form-urlencoded"
},
"body": "1&b",
"method": "POST",
"mode": "cors"
});
cURL Windows:
curl "http://example.org/path" ^
-H "Content-Type: application/json" ^
--data-binary "^{^\^"a^\^":1^}" ^
--compressed
cURL Unix:
curl 'http://example.org/path' \
-H 'Content-Type: application/json' \
--data-binary '{"a":1}' \
--compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" `
-Method "POST" `
-ContentType "application/json" `
-Body "{`"a`":1}"
fetch (for browser):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/json"
},
"body": "{\"a\":1}",
"method": "POST",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/json"
},
"body": "{\"a\":1}",
"method": "POST",
"mode": "cors"
});
cURL Windows:
curl "http://example.org/path" ^
-H "Content-Type: application/binary" ^
--data-binary ^"1234^
00^^^^'^\^"^!^" ^
--compressed
cURL Unix:
curl 'http://example.org/path' \
-H 'Content-Type: application/binary' \
--data-binary $'1234\r\n00\u0002\u0003\u0004\u0005\'"\u0021' \
--compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" `
-Method "POST" `
-ContentType "application/binary" `
-Body ([System.Text.Encoding]::UTF8.GetBytes("1234$([char]13)$([char]10)00$([char]2)$([char]3)$([char]4)$([char]5)'`"!"))
fetch (for browser):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/binary"
},
"body": "1234\r\n00\u0002\u0003\u0004\u0005'\"!",
"method": "POST",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/binary"
},
"body": "1234\r\n00\u0002\u0003\u0004\u0005'\"!",
"method": "POST",
"mode": "cors"
});
cURL Windows:
curl "http://example.org/path" ^
-H "Content-Type: application/binary" ^
--data-binary ^"1234^
^00^^^^'^\^"^!^" ^
--compressed
cURL Unix:
curl 'http://example.org/path' \
-H 'Content-Type: application/binary' \
--data-binary $'1234\r\n\u000100\u0002\u0003\u0004\u0005\'"\u0021' \
--compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" `
-Method "POST" `
-ContentType "application/binary" `
-Body ([System.Text.Encoding]::UTF8.GetBytes("1234$([char]13)$([char]10)$([char]1)00$([char]2)$([char]3)$([char]4)$([char]5)'`"!"))
fetch (for browser):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/binary"
},
"body": "1234\r\n\u000100\u0002\u0003\u0004\u0005'\"!",
"method": "POST",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/binary"
},
"body": "1234\r\n\u000100\u0002\u0003\u0004\u0005'\"!",
"method": "POST",
"mode": "cors"
});
cURL Windows:
curl "http://example.org/path" ^
-H "Content-Type: application/binary" ^
--data-binary ^"^%^OS^%^
^%^%^OS^%^%^ ^%^%^OS^%^%^
^\^"^\^\^\^"'^$^&^!^" --compressed ^\^"^\^\^\^"'^$^&^!^" ^
cURL Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'%OS%\r\n%%OS%%\r\n"\\"\'$&\u0021' --compressed --compressed
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Method "POST" -ContentType "application/binary" -Body ([System.Text.Encoding]::UTF8.GetBytes("%OS%$([char]13)$([char]10)%%OS%%$([char]13)$([char]10)`"\`"'`$&!"))
fetch: fetch("http://example.org/path", {"credentials":"omit","headers":{"content-type":"application/binary"},"body":"%OS%\r\n%%OS%%\r\n\"\\\"'$&!","method":"POST","mode":"cors"});
cURL Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary ^"^!^@^#^$^%^^^&*()_+~`1234567890-=^[^]^{^};':^\^",./^ cURL Unix:
curl 'http://example.org/path' \
-H 'Content-Type: application/binary' \
--data-binary $'%OS%\r\n%%OS%%\r\n"\\"\'$&\u0021' \
--compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" `
-Method "POST" `
-ContentType "application/binary" `
-Body ([System.Text.Encoding]::UTF8.GetBytes("%OS%$([char]13)$([char]10)%%OS%%$([char]13)$([char]10)`"\`"'`$&!"))
fetch (for browser):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/binary"
},
"body": "%OS%\r\n%%OS%%\r\n\"\\\"'$&!",
"method": "POST",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/binary"
},
"body": "%OS%\r\n%%OS%%\r\n\"\\\"'$&!",
"method": "POST",
"mode": "cors"
});
cURL Windows:
curl "http://example.org/path" ^
-H "Content-Type: application/binary" ^
--data-binary ^"^!^@^#^$^%^^^&*()_+~`1234567890-=^[^]^{^};':^\^",./^
^<^>?^ ^<^>?^
...@@ -46,48 +303,375 @@ t^ ...@@ -46,48 +303,375 @@ t^
^ ^
yuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM^" --compressed yuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM^" ^
cURL Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'\u0021@#$%^&*()_+~`1234567890-=[]{};\':",./\r<>?\r\nqwer\nt\n\nyuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM' --compressed --compressed
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Method "POST" -ContentType "application/binary" -Body ([System.Text.Encoding]::UTF8.GetBytes("!@#`$%^&*()_+~``1234567890-=[]{};':`",./$([char]13)<>?$([char]13)$([char]10)qwer$([char]10)t$([char]10)$([char]10)yuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM"))
fetch: fetch("http://example.org/path", {"credentials":"omit","headers":{"content-type":"application/binary"},"body":"!@#$%^&*()_+~`1234567890-=[]{};':\",./\r<>?\r\nqwer\nt\n\nyuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM","method":"POST","mode":"cors"});
cURL Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary "^^€^^ÿ ^܀" --compressed cURL Unix:
cURL Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary $'\u007f\u0080\u0090ÿ\u0009܀' --compressed curl 'http://example.org/path' \
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Method "POST" -ContentType "application/binary" -Body ([System.Text.Encoding]::UTF8.GetBytes("$([char]127)$([char]128)$([char]144)$([char]255)$([char]9)$([char]1792)")) -H 'Content-Type: application/binary' \
fetch: fetch("http://example.org/path", {"credentials":"omit","headers":{"content-type":"application/binary"},"body":"€ÿ\t܀","method":"POST","mode":"cors"}); --data-binary $'\u0021@#$%^&*()_+~`1234567890-=[]{};\':",./\r<>?\r\nqwer\nt\n\nyuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM' \
cURL Windows: curl "http://labs.ft.com/?querystring=^\[^\]^\{^\}" --compressed --compressed
cURL Unix: curl 'http://labs.ft.com/?querystring=\[\]\{\}' --compressed
Powershell: Invoke-WebRequest -Uri "http://labs.ft.com/?querystring=[]{}"
fetch: fetch("http://labs.ft.com/?querystring=[]{}", {"credentials":"omit","body":null,"method":"GET","mode":"cors"}); Powershell:
cURL Windows: curl "http://example.org/path" -H "Content-Type: application/binary" --data-binary "^%^PATH^%^$PATH" --compressed Invoke-WebRequest -Uri "http://example.org/path" `
cURL Unix: curl 'http://example.org/path' -H 'Content-Type: application/binary' --data-binary '%PATH%$PATH' --compressed -Method "POST" `
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Method "POST" -ContentType "application/binary" -Body "%PATH%`$PATH" -ContentType "application/binary" `
fetch: fetch("http://example.org/path", {"credentials":"omit","headers":{"content-type":"application/binary"},"body":"%PATH%$PATH","method":"POST","mode":"cors"}); -Body ([System.Text.Encoding]::UTF8.GetBytes("!@#`$%^&*()_+~``1234567890-=[]{};':`",./$([char]13)<>?$([char]13)$([char]10)qwer$([char]10)t$([char]10)$([char]10)yuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM"))
cURL Windows: curl "http://example.org/path" --compressed
cURL Unix: curl 'http://example.org/path' --compressed
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Headers @{"version"="v"} fetch (for browser):
fetch: fetch("http://example.org/path", {"credentials":"omit","method":"GET","mode":"cors"}); fetch("http://example.org/path", {
cURL Windows: curl "http://example.org/path" -H "Cookie: _x=fdsfs; aA=fdsfdsf; FOO=ID=BAR:BAZ=FOO:F=d:AO=21.212.2.212-:A=dsadas8d9as8d9a8sd9sa8d9a; AAA=117" --compressed "headers": {
cURL Unix: curl 'http://example.org/path' -H 'Cookie: _x=fdsfs; aA=fdsfdsf; FOO=ID=BAR:BAZ=FOO:F=d:AO=21.212.2.212-:A=dsadas8d9as8d9a8sd9sa8d9a; AAA=117' --compressed "content-type": "application/binary"
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Headers @{"Cookie"="_x=fdsfs; aA=fdsfdsf; FOO=ID=BAR:BAZ=FOO:F=d:AO=21.212.2.212-:A=dsadas8d9as8d9a8sd9sa8d9a; AAA=117"} },
fetch: fetch("http://example.org/path", {"credentials":"include","method":"GET","mode":"cors"}); "body": "!@#$%^&*()_+~`1234567890-=[]{};':\",./\r<>?\r\nqwer\nt\n\nyuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM",
cURL Windows: "method": "POST",
cURL Unix: "mode": "cors",
Powershell: "credentials": "omit"
fetch: });
cURL Windows:
cURL Unix:
Powershell: fetch (for nodejs):
fetch: fetch("http://example.org/path", {
cURL Windows: "headers": {
cURL Unix: "content-type": "application/binary"
Powershell: },
fetch: "body": "!@#$%^&*()_+~`1234567890-=[]{};':\",./\r<>?\r\nqwer\nt\n\nyuiopasdfghjklmnbvcxzQWERTYUIOPLKJHGFDSAZXCVBNM",
cURL Windows: curl "http://example.org/path" -H "Content-Type: foo/bar" --data-binary "baz" --compressed "method": "POST",
cURL Unix: curl 'http://example.org/path' -H 'Content-Type: foo/bar' --data-binary 'baz' --compressed "mode": "cors"
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Method "POST" -ContentType "foo/bar" -Body "baz" });
fetch: fetch("http://example.org/path", {"credentials":"omit","headers":{"content-type":"foo/bar"},"body":"baz","method":"POST","mode":"cors"});
cURL Windows: curl "http://example.org/path" -H "Content-Type: foo/bar" --data-binary "baz" --compressed
cURL Unix: curl 'http://example.org/path' -H 'Content-Type: foo/bar' --data-binary 'baz' --compressed cURL Windows:
Powershell: Invoke-WebRequest -Uri "http://example.org/path" -Method "POST" -ContentType "foo/bar" -Body "baz" curl "http://example.org/path" ^
fetch: fetch("http://example.org/path", {"credentials":"omit","headers":{"content-type":"foo/bar"},"body":"baz","method":"POST","mode":"cors"}); -H "Content-Type: application/binary" ^
--data-binary "^^€^^ÿ ^܀" ^
--compressed
cURL Unix:
curl 'http://example.org/path' \
-H 'Content-Type: application/binary' \
--data-binary $'\u007f\u0080\u0090ÿ\u0009܀' \
--compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" `
-Method "POST" `
-ContentType "application/binary" `
-Body ([System.Text.Encoding]::UTF8.GetBytes("$([char]127)$([char]128)$([char]144)$([char]255)$([char]9)$([char]1792)"))
fetch (for browser):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/binary"
},
"body": "€ÿ\t܀",
"method": "POST",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/binary"
},
"body": "€ÿ\t܀",
"method": "POST",
"mode": "cors"
});
cURL Windows:
curl "http://labs.ft.com/?querystring=^\[^\]^\{^\}" --compressed
cURL Unix:
curl 'http://labs.ft.com/?querystring=\[\]\{\}' --compressed
Powershell:
Invoke-WebRequest -Uri "http://labs.ft.com/?querystring=[]{}"
fetch (for browser):
fetch("http://labs.ft.com/?querystring=[]{}", {
"body": null,
"method": "GET",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://labs.ft.com/?querystring=[]{}", {
"body": null,
"method": "GET",
"mode": "cors"
});
cURL Windows:
curl "http://example.org/path" ^
-H "Content-Type: application/binary" ^
--data-binary "^%^PATH^%^$PATH" ^
--compressed
cURL Unix:
curl 'http://example.org/path' \
-H 'Content-Type: application/binary' \
--data-binary '%PATH%$PATH' \
--compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" `
-Method "POST" `
-ContentType "application/binary" `
-Body "%PATH%`$PATH"
fetch (for browser):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/binary"
},
"body": "%PATH%$PATH",
"method": "POST",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"headers": {
"content-type": "application/binary"
},
"body": "%PATH%$PATH",
"method": "POST",
"mode": "cors"
});
cURL Windows:
curl "http://example.org/path" --compressed
cURL Unix:
curl 'http://example.org/path' --compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" -Headers @{
"version"="v"
}
fetch (for browser):
fetch("http://example.org/path", {
"method": "GET",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"method": "GET",
"mode": "cors"
});
cURL Windows:
curl "http://example.org/path" ^
-H "Cookie: _x=fdsfs; aA=fdsfdsf; FOO=ID=BAR:BAZ=FOO:F=d:AO=21.212.2.212-:A=dsadas8d9as8d9a8sd9sa8d9a; AAA=117" ^
--compressed
cURL Unix:
curl 'http://example.org/path' \
-H 'Cookie: _x=fdsfs; aA=fdsfdsf; FOO=ID=BAR:BAZ=FOO:F=d:AO=21.212.2.212-:A=dsadas8d9as8d9a8sd9sa8d9a; AAA=117' \
--compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" -Headers @{
"Cookie"="_x=fdsfs; aA=fdsfdsf; FOO=ID=BAR:BAZ=FOO:F=d:AO=21.212.2.212-:A=dsadas8d9as8d9a8sd9sa8d9a; AAA=117"
}
fetch (for browser):
fetch("http://example.org/path", {
"method": "GET",
"mode": "cors",
"credentials": "include"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"headers": {
"cookie": "_x=fdsfs; aA=fdsfdsf; FOO=ID=BAR:BAZ=FOO:F=d:AO=21.212.2.212-:A=dsadas8d9as8d9a8sd9sa8d9a; AAA=117"
},
"method": "GET",
"mode": "cors"
});
cURL Windows:
cURL Unix:
Powershell:
fetch (for browser):
fetch (for nodejs):
cURL Windows:
cURL Unix:
Powershell:
fetch (for browser):
fetch (for nodejs):
cURL Windows:
cURL Unix:
Powershell:
fetch (for browser):
fetch (for nodejs):
cURL Windows:
curl "http://example.org/path" ^
-H "Content-Type: foo/bar" ^
--data-binary "baz" ^
--compressed
cURL Unix:
curl 'http://example.org/path' \
-H 'Content-Type: foo/bar' \
--data-binary 'baz' \
--compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" `
-Method "POST" `
-ContentType "foo/bar" `
-Body "baz"
fetch (for browser):
fetch("http://example.org/path", {
"headers": {
"content-type": "foo/bar"
},
"body": "baz",
"method": "POST",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"headers": {
"content-type": "foo/bar"
},
"body": "baz",
"method": "POST",
"mode": "cors"
});
cURL Windows:
curl "http://example.org/path" ^
-H "Content-Type: foo/bar" ^
--data-binary "baz" ^
--compressed
cURL Unix:
curl 'http://example.org/path' \
-H 'Content-Type: foo/bar' \
--data-binary 'baz' \
--compressed
Powershell:
Invoke-WebRequest -Uri "http://example.org/path" `
-Method "POST" `
-ContentType "foo/bar" `
-Body "baz"
fetch (for browser):
fetch("http://example.org/path", {
"headers": {
"content-type": "foo/bar"
},
"body": "baz",
"method": "POST",
"mode": "cors",
"credentials": "omit"
});
fetch (for nodejs):
fetch("http://example.org/path", {
"headers": {
"content-type": "foo/bar"
},
"body": "baz",
"method": "POST",
"mode": "cors"
});
...@@ -29,11 +29,13 @@ ...@@ -29,11 +29,13 @@
var curlWin = await logView._generateCurlCommand(newRequest(false, headers, data, opt_url), 'win'); var curlWin = await logView._generateCurlCommand(newRequest(false, headers, data, opt_url), 'win');
var curlUnix = await logView._generateCurlCommand(newRequest(false, headers, data, opt_url), 'unix'); var curlUnix = await logView._generateCurlCommand(newRequest(false, headers, data, opt_url), 'unix');
var powershell = await logView._generatePowerShellCommand(newRequest(false, headers, data, opt_url)); var powershell = await logView._generatePowerShellCommand(newRequest(false, headers, data, opt_url));
var fetch = await logView._generateFetchCall(newRequest(false, headers, data, opt_url)); var fetchForBrowser = await logView._generateFetchCall(newRequest(false, headers, data, opt_url), false);
TestRunner.addResult(`cURL Windows: ${curlWin}`); var fetchForNodejs = await logView._generateFetchCall(newRequest(false, headers, data, opt_url), true);
TestRunner.addResult(`cURL Unix: ${curlUnix}`); TestRunner.addResult(`cURL Windows:\n${curlWin}\n\n`);
TestRunner.addResult(`Powershell: ${powershell}`); TestRunner.addResult(`cURL Unix:\n${curlUnix}\n\n`);
TestRunner.addResult(`fetch: ${fetch}`); TestRunner.addResult(`Powershell:\n${powershell}\n\n`);
TestRunner.addResult(`fetch (for browser):\n${fetchForBrowser}\n\n`);
TestRunner.addResult(`fetch (for nodejs):\n${fetchForNodejs}\n\n`);
} }
async function dumpMultipleRequests(blobPattern) { async function dumpMultipleRequests(blobPattern) {
...@@ -44,11 +46,13 @@ ...@@ -44,11 +46,13 @@
var allCurlWin = await logView._generateAllCurlCommand(allRequests, 'win'); var allCurlWin = await logView._generateAllCurlCommand(allRequests, 'win');
var allCurlUnix = await logView._generateAllCurlCommand(allRequests, 'unix'); var allCurlUnix = await logView._generateAllCurlCommand(allRequests, 'unix');
var allPowershell = await logView._generateAllPowerShellCommand(allRequests); var allPowershell = await logView._generateAllPowerShellCommand(allRequests);
var allFetch = await logView._generateAllFetchCall(allRequests); var allFetchForBrowser = await logView._generateAllFetchCall(allRequests, false);
TestRunner.addResult(`cURL Windows: ${allCurlWin}`); var allFetchForNodejs = await logView._generateAllFetchCall(allRequests, true);
TestRunner.addResult(`cURL Unix: ${allCurlUnix}`); TestRunner.addResult(`cURL Windows:\n${allCurlWin}\n\n`);
TestRunner.addResult(`Powershell: ${allPowershell}`); TestRunner.addResult(`cURL Unix:\n${allCurlUnix}\n\n`);
TestRunner.addResult(`fetch: ${allFetch}`); TestRunner.addResult(`Powershell:\n${allPowershell}\n\n`);
TestRunner.addResult(`fetch (for browser):\n${allFetchForBrowser}\n\n`);
TestRunner.addResult(`fetch (for nodejs):\n${allFetchForNodejs}\n\n`);
} }
await dumpRequest({}); await dumpRequest({});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment