-
Problem report
-
Resolution: Unresolved
-
Major
-
None
-
6.0.41, 7.0.18, 7.4.2, 8.0.0alpha1 (master)
-
Support backlog
Steps to reproduce:
var request = new HttpRequest(); var url = "https://[2001:db8:ac:ac::1234]/api/aaaLogin.json"; var method = "POST"; var body = JSON.stringify({ "aaaUser" : { "attributes" : { "name" : "admin", "pwd" : "mysuperduperpassword" } } }); response = request.customRequest(method.toUpperCase(), url, body); /** * Actual result: 400 Bad Request * * from webserver logs i can see that HTTP method was 'Login.json' instead of 'POST'. * i.e. Login.json /api/aaaLogin.json HTTP/1.1 -> 400 Bad Request * * Expected result: 200 OK * Good example on webserver logs shows: POST /api/aaaLogin.json HTTP/1.1 */
Result:
Webserver returns 400 bad request.
Upon investigation the webserver logs I see that the METHOD was 'Login.json' instead of 'POST'
Expected:
HTTP method should not be altered when using literal IPv6 within brackets in the url