Bad request' error 400 in Testcomplete POST request
Hello, I'm trying to send http POST request to a server to receive a JSON token. I keep getting 'Bad Request' error. So far I have been unable to find out the real issue here. There's not request payload required for this service call. I've tried the same thing in postman/soapui, it just works fine If anyone can give me some direction here, I'd really appreciate it. function httpPostRequest() { var address ="http://dc2-amopoclak.com:11114/services//auth" var username = "ALPOLD" var password = "XXXXXX"; // Create the aqHttpRequest object var aqHttpRequest = aqHttp.CreatePostRequest(address, username, password); aqHttpRequest.SetHeader("Content-Type", "application/json"); //There's not request payload for this var aqHttpResponse = aqHttpRequest.Send(); if(aqHttpResponse.StatusCode == 200) { return true; }else{ return false; } } Thank you AlSolved2KViews0likes4Comments