Skip to content
This repository was archived by the owner on Apr 8, 2025. It is now read-only.

Commit e084b03

Browse files
committed
Update the .html files for test cases that use AJAX to submit the
values of parameter names as input to the server, to set the content-type of the request to application/x-www-form-urlencoded so the server side code can properly process the input and return a response. It was previously submitting a default content-type of test/plain, causing the response to be blank. This change is intended to address issue OWASP-Benchmark#120.
1 parent a884c11 commit e084b03

File tree

257 files changed

+257
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

257 files changed

+257
-0
lines changed

src/main/webapp/cmdi-00/BenchmarkTest00558.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
var xhr = new XMLHttpRequest();
4646
xhr.open("POST", URL, true);
47+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
4748

4849
xhr.onreadystatechange = function () {
4950
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {

src/main/webapp/cmdi-00/BenchmarkTest00559.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
var xhr = new XMLHttpRequest();
4646
xhr.open("POST", URL, true);
47+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
4748

4849
xhr.onreadystatechange = function () {
4950
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {

src/main/webapp/cmdi-00/BenchmarkTest00567.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
var xhr = new XMLHttpRequest();
4646
xhr.open("POST", URL, true);
47+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
4748

4849
xhr.onreadystatechange = function () {
4950
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {

src/main/webapp/cmdi-00/BenchmarkTest00568.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
var xhr = new XMLHttpRequest();
4646
xhr.open("POST", URL, true);
47+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
4748

4849
xhr.onreadystatechange = function () {
4950
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {

src/main/webapp/cmdi-00/BenchmarkTest00569.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
var xhr = new XMLHttpRequest();
4646
xhr.open("POST", URL, true);
47+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
4748

4849
xhr.onreadystatechange = function () {
4950
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {

src/main/webapp/cmdi-00/BenchmarkTest00570.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
var xhr = new XMLHttpRequest();
4646
xhr.open("POST", URL, true);
47+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
4748

4849
xhr.onreadystatechange = function () {
4950
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {

src/main/webapp/cmdi-00/BenchmarkTest00571.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
var xhr = new XMLHttpRequest();
4646
xhr.open("POST", URL, true);
47+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
4748

4849
xhr.onreadystatechange = function () {
4950
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {

src/main/webapp/cmdi-00/BenchmarkTest00572.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
var xhr = new XMLHttpRequest();
4646
xhr.open("POST", URL, true);
47+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
4748

4849
xhr.onreadystatechange = function () {
4950
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {

src/main/webapp/cmdi-00/BenchmarkTest00573.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
var xhr = new XMLHttpRequest();
4646
xhr.open("POST", URL, true);
47+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
4748

4849
xhr.onreadystatechange = function () {
4950
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {

src/main/webapp/cmdi-00/BenchmarkTest00574.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444

4545
var xhr = new XMLHttpRequest();
4646
xhr.open("POST", URL, true);
47+
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
4748

4849
xhr.onreadystatechange = function () {
4950
if (xhr.readyState == XMLHttpRequest.DONE && xhr.status == 200) {

0 commit comments

Comments
 (0)