elnormous/HTTPRequest

Post request failed

Mareek89 opened this issue · 1 comments

Idk what´s wrong here, but the post request failed.
For example if I use another lib like restclient-cpp it`s working fine.
But libcurl is hughe that´s why I want to switch to a header only.

Here is the code ->
http::Request request("https://api.tarkov.dev/graphql"); const auto parameters = (xorstr_( "{\"operationName\":null,\"variables\":{},\"query\":\"{\\n items: itemsByType(type: any) {\\n id\\n name\\n avg24hPrice\\n width\\n height\\n }\\n}\\n\"}")); const auto response = request.send("POST", parameters, {"Content-Type: application/json"});

nvm i saw now https are not supported ...