I'm trying to send out a Http.Request (GET) with a url attached with query params.
I'm able to hit the server with the following (confirm by logs and a 502 response)
Http.Request request = Http.Request("example-api.com"); request.method = Http.Method.Get; Http.Response response = request.sendAndWait();
However, when trying with the following
Http.Request request = Http.Request("example-api.com?param1=123"); request.method = Http.Method.Get; Http.Response response = request.sendAndWait(); print(response.value); print(response.statusCode);
The output console displays
(empty line here, code formatter deletes it if I leave it as empty line) 0
With logs on the server end showing the call didn't go through
Any ideas here?