This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #11

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
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:53.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode