Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Adjusting API request to POST if too much data#180

Merged
claud-io merged 13 commits intocatchpoint:mastercatchpoint/WebPageTest.api-nodejs:masterfrom
max-ostapenko:gentle-mitemax-ostapenko/WebPageTest.api-nodejs:gentle-miteCopy head branch name to clipboard
Dec 2, 2024
Merged

Adjusting API request to POST if too much data#180
claud-io merged 13 commits intocatchpoint:mastercatchpoint/WebPageTest.api-nodejs:masterfrom
max-ostapenko:gentle-mitemax-ostapenko/WebPageTest.api-nodejs:gentle-miteCopy head branch name to clipboard

Conversation

@max-ostapenko
Copy link
Contributor

resolves #177

I'm checking the length of data, and based on the threshold of 6Kb switching the method to POST. (you could adjust it according to server configuration).

Added a test checking that all the parameters are passed in POST request instead of query.

@max-ostapenko max-ostapenko marked this pull request as ready for review October 11, 2023 18:52
@mjkozicki mjkozicki self-assigned this Oct 26, 2023
@lbartoli79
Copy link
Contributor

Please revert code formatting before submitting the PR

@max-ostapenko
Copy link
Contributor Author

@lbartoli79 please check now

lib/helper.js Show resolved Hide resolved
lib/webpagetest.js Outdated Show resolved Hide resolved
test/command-line-test.js Show resolved Hide resolved
@claud-io claud-io merged commit 0415e87 into catchpoint:master Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support POST requests in runTest method

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.