View Single Post
mr05je
New Member
Join Date: Dec 2020
Old 12-03-2020 , 09:31   Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/09/13)
Reply With Quote #85

Hi, i have problem with SSL

Error: POST Error: Cert verify failed: BADCERT_NOT_TRUSTED

I'am trying to send request on localhost and idk how to fix this bug

Code:
JSONObject CreateJSONObject()
{
    JSONObject hJSONObject = new JSONObject();
    hJSONObject.SetString("steamId", "1");

    return hJSONObject;
}

public Action test(int client, int args)
{	
	
    JSONObject hJSONObject = CreateJSONObject();
    HTTPClient hHTTPClient = new HTTPClient("http://localhost:5000/Gang");
    
    hHTTPClient.Post("post", hJSONObject, OnHTTPResponse, 1);
}
P.S.:
I am bad at English, it is difficult for me because I live in Russia

Last edited by mr05je; 12-03-2020 at 09:31.
mr05je is offline