I can't send Post requests through sendRequest
See original GitHub issueI have tried submitting the following request:
POST https://prueba.qa.com/JPR_PRUEBAS_User/screenservices/JPR_PRUEBAS_User/Authentication/Login/ActionValidateUsername HTTP/1.1
Connection: keep-alive
Content-Length: 4134
sec-ch-ua: "Google Chrome";v="93", " Not;A Brand";v="99", "Chromium";v="93"
Accept: application/json
X-CSRFToken: T6C+9iB49TLra4jEsMeSckDMNhQ=
sec-ch-ua-mobile: ?0
Content-Type: application/json; charset=UTF-8
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36
sec-ch-ua-platform: "Windows"
Origin: https://prueba.qa.com
Sec-Fetch-Site: same-origin
Sec-Fetch-Mode: cors
Sec-Fetch-Dest: empty
Referer: https://prueba.qa.com/JPR_PRUEBASE_User/Login
Accept-Language: es-ES,es;q=0.9
Host: prueba.qa.com
Cookie: OSPA=; NSC_twf-cd-ptq-rb.upep-1.dpn*5443=ffffffffc3a07b5c45525d5f4f58455e445a4a4211f4; OSPS=ItJqtqcD1KiuZ92hkQBAlfLl; OSPC={"PublicKey":"00f4849fcf14bb554fdc74e076e606e9807ce1cb3f840f53e3e2812a8a3358abc216999dbc08a19eeceee3690fdc6c4474f0da113ef69b08ab25aa98ace6462a461704e38613139e4d977356e25145ca0b67dc1d1cf5ab55c651129d7900d95d9d7d56c0672cecc8206a8f7851b0f1289c7b28c09159bef3c361f7416af078805a1b0b5f8d95a04e7777cc0c517e7714ce732124caa7e73fa2d22cb80f05417c94f9369839c446ae9feff715434001005f70d614b084619960c934eb1477abff7801d0f81294b9899489aa36ae1dcf63e1efffadbbe26aa931f2d503fefc1b834401b0504690925eb72c0ba9e3b111063bed78c727e16505918c895d9a945975fd","Salt":"-1434639677"}; nr1Users=lid%3dAnonymous%3btuu%3d0%3bexp%3d0%3brhs%3dXBC1ss1nOgYW1SmqUjSxLucVOAg%3d%3bhmc%3dtKyOpF841my2UZLiwKD8xudAM0o%3d; OSPL={"Locale":"ES"}; nr2Users=crf%3dT6C%2b9iB49TLra4jEsMeSckDMNhQ%3d%3buid%3d0%3bunm%3d; ApplicationGatewayAffinityCORS=9cd8b10ac2ef39d908e27ed91c637a36; UUID=e96d75f64414a46853ee726862a65f36; OSP=SVE; ApplicationGatewayAffinity=9cd8b10ac2ef39d908e27ed91c637a36
{"versionInfo":{"moduleVersion":"ucxmkIqYG2oW+Z8Cfe3Ygg","apiVersion":"BnaV9+lvRQDzPa4+qUdF2Q"},"viewName":"Authentication.Login","inputParameters":{"Username":"prepacolom002","Password":"zXnNaz/hZY0SzjFP3/L9VFiC8euPqdeVZb21x79Nt0Goajhwdu1cGcVHnSvILvHNyGLpD+WvevldtBVcgYDzy2r05WtKiac8xXubTsmfzcqvDJZKOaYzQrBhSl6qOR0YtEIWQtxne8monpcN3c5dEjlgv3WBs5+jef35SJcNf2vDVGIJXwvPPnqX1JpQ8/mqDI1pz8B+x72ccSORBk3O/U8HahdTc5yVekvDVJNV5A89Nf3Cl65d63C9iDKguABKUPq9RCQQto8FJRhLWZE5dvfFxpjGpl7Gbl1D+sEWw5bvV5e6IFeDFTDK828DV+EAkSEEPqTXhhpWnwxtK1UpZQ==","DevicePrint":"%7B%22Version%22%3A%223%2E5%2E1%5F4%22%2C%22Browser%22%3A%7B%22userAgent%22%3A%22mozilla%2F5%2E0%20%28windows%20nt%2010%2E0%3B%20win64%3B%20x64%29%20applewebkit%2F537%2E36%20%28khtml%2C%20like%20gecko%29%20chrome%2F93%2E0%2E4577%2E63%20safari%2F537%2E36%22%2C%22appVersion%22%3A%225%2E0%20%28Windows%20NT%2010%2E0%3B%20Win64%3B%20x64%29%20AppleWebKit%2F537%2E36%20%28KHTML%2C%20like%20Gecko%29%20Chrome%2F93%2E0%2E4577%2E63%20Safari%2F537%2E36%22%2C%22platform%22%3A%22Win32%22%2C%22appMinorVersion%22%3A%22%22%2C%22cpuClass%22%3A%22%22%2C%22browserLanguage%22%3A%22%22%2C%22browserName%22%3A%22Chrome%22%2C%22browserVersion%22%3A%2293%2E0%2E4577%2E63%22%2C%22browserMajor%22%3A%2293%22%2C%22browserEngineName%22%3A%22WebKit%22%2C%22browserEngineVersion%22%3A%22537%2E36%22%2C%22osName%22%3A%22Windows%22%2C%22browserOS%22%3A%22Windows%22%2C%22osVersion%22%3A%2210%22%2C%22deviceVendor%22%3A%22%22%2C%22deviceModel%22%3A%22%22%2C%22deviceType%22%3A%22%22%2C%22cpuArchitecture%22%3A%22amd64%22%2C%22isPrivateMode%22%3A%220%22%7D%2C%22General%22%3A%7B%22language%22%3A%22es%2DES%22%2C%22syslang%22%3A%22%22%2C%22userlang%22%3A%22%22%2C%22deviceMemory%22%3A%228%22%2C%22hardwareConcurrency%22%3A%228%22%2C%22resolution%22%3A%221366x768%22%2C%22colorDepth%22%3A%2224%22%2C%22screenWidth%22%3A%221366%22%2C%22screenHeight%22%3A%22768%22%2C%22availableHeight%22%3A%22728%22%2C%22availableResolution%22%3A%221366x728%22%2C%22screenAvailableWdth%22%3A%221366%22%2C%22timeZone%22%3A%22%2D5%22%2C%22timezoneOffset%22%3A%22300%22%2C%22sessionStorage%22%3A%220%22%2C%22cookieEnabled%22%3A%221%22%2C%22localStorage%22%3A%221%22%2C%22indexedDb%22%3A%220%22%2C%22cpuClass%22%3A%22%22%2C%22openDatabase%22%3A%221%22%2C%22navigatorPlatform%22%3A%22Win32%22%2C%22vendorWebGL%22%3A%221%22%2C%22rendererVideo%22%3A%22ANGLE%20%28Intel%2C%20Intel%28R%29%20Iris%28R%29%20Plus%20Graphics%20Direct3D11%20vs%5F5%5F0%20ps%5F5%5F0%2C%20D3D11%2D27%2E20%2E100%2E8729%29%22%2C%22software%22%3A%22%22%2C%22javaEnabled%22%3A%220%22%2C%22allSoftware%22%3A%22internal%2Dpdf%2Dviewer%7Cmhjfbmdgcfjbbpaeojofohoefgiehjai%7Cinternal%2Dnacl%2Dplugin%22%2C%22appName%22%3A%22Netscape%22%2C%22appCodeName%22%3A%22Mozilla%22%2C%22onLine%22%3A%22true%22%2C%22opsProfile%22%3A%22%22%2C%22userProfile%22%3A%22%22%2C%22screenBufferDepth%22%3A%22%22%2C%22screendDeviceXDPI%22%3A%22%22%2C%22screenDeviceYDPI%22%3A%22%22%2C%22screenLogicalXDPI%22%3A%22%22%2C%22screenLogicalYPDI%22%3A%22%22%2C%22screenFontSmoothingEnabled%22%3A%22%22%2C%22screenUpdateInterval%22%3A%22%22%2C%22pingIn%22%3A%22%22%2C%22pingEx%22%3A%22%22%7D%2C%22Personalization%22%3A%7B%22numberPlugins%22%3A%223%22%2C%22numberFonts%22%3A%2248%22%7D%2C%22Alterations%22%3A%7B%22adblock%22%3A%220%22%2C%22hasLiedLanguages%22%3A%220%22%2C%22hasLiedResolution%22%3A%220%22%2C%22hasLiedOs%22%3A%220%22%2C%22hasLiedBrowser%22%3A%220%22%2C%22touchSupport%22%3A%220%22%7D%2C%22Network%22%3A%7B%22publicIp%22%3A%22%22%2C%22localIp%22%3A%22%22%7D%2C%22Site%22%3A%7B%22host%22%3A%22apolo%2Dosp%2Dqa%2Dui%2prueba%2D1%2Ecom%22%2C%22hostName%22%3A%22apolo%2Dosp%2Dqa%2Dui%2Eprueba%2D1%2Ecom%22%2C%22href%22%3A%22https%3A%2F%2Fapolo%2Dosp%2Dqa%2Dui%prueba%2D1%2Ecom%2FBC%5FSVE%5FUser%2FLogin%22%2C%22origin%22%3A%22%22%2C%22pathname%22%3A%22%2FBC%5FSVE%5FUser%2FLogin%22%2C%22port%22%3A%22%22%2C%22protocol%22%3A%22https%3A%22%7D%2C%22Identifiers%22%3A%7B%22cookie%22%3A%22e96d75f64414a46853ee726862a65f36%22%2C%22localStorageValue%22%3A%223d347d7b0e20dad55b28dcfd19fb9082%22%2C%22hash%22%3A%22EAA0689A095D4394%2E04AFA79AD9F1899C%2E44%22%7D%7D","SessionId":"ItJqtqcD1KiuZ92hkQBAlfLl"}}
But I get as response:
{\"Errors\":[\"The format of value '' is invalid.\"],\"StatusCode\":500}
In what I manage to analyze in the response json is that the request header is being cut and the request body is empty, please collaborate
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
cannot send post request in Laravel - Stack Overflow
I am trying to send a post request and it give me this error. I think the error is caused by something in...
Read more >pm.sendRequest not working in post request Test - Help
My issue was to send some headers that should not be sent with a get request. This happened by copying the post request...
Read more >XMLHttpRequest.send() - Web APIs | MDN
The XMLHttpRequest method send() sends the request to the server. If the request is asynchronous (which is the default), this method returns ...
Read more >Communicating with backend services using HTTP - Angular
Most front-end applications need to communicate with a server over the HTTP protocol, to download or upload data and access other back-end services....
Read more >Http.request not sending POST data? (SOLVED) - Defold Forum
I have validated my php file by sending an http request using this site. The POST data I send there does appear in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The following request:
would be sent with the API as:
http://zap/JSON/core/action/sendRequest/?request=POST%20https%3A%2F%2Fexample.com%2F%20HTTP%2F1.1%0D%0Acontent-length%3A%205%0D%0A%0D%0A12345
Make sure that you are properly separating the header from the body (i.e.
\r\n\r\n
).These questions are better suited for the OWASP ZAP User Group: https://groups.google.com/g/zaproxy-users/