Rules
FAQ
Members List
Search
Register
Login
Raised This Month: $51
Target: $400
12%
Search Forums
Show Threads
Show Posts
Advanced Search
Go to Page...
Page 1 of 2
1
2
>
Showing results 1 to 25 of 29
Search took
0.00
seconds.
Search:
Posts Made By:
DJ Tsunami
Forum:
Extensions
08-24-2021, 11:48
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/06/06)
Have you tried request.SetHeader("Transfer-Encoding", "");? I'm not sure if it will work, since it puts a space after the colon.
Forum:
Extensions
06-13-2021, 06:01
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/06/06)
I've attached debug builds for Linux and Windows. It would also be useful to know what webserver you're using (Apache / nginx / Caddy?), and which version.
Laravel should automatically fill the...
Forum:
Extensions
06-07-2021, 15:40
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/06/06)
How are you reading the POST data in Laravel? This works for me with both Postman and REST in Pawn:
Route::post('/post', function (Request $request) {
return new...
Forum:
Extensions
06-06-2021, 07:35
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/06/06)
Version 1.3 has been released with the following changes:
Deprecated HTTPClient methodmap
Introduced HTTPRequest methodmap
Added ability to append query parameters to the URL
Added...
Forum:
Extensions
02-20-2021, 06:24
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
If a LogMessage at the top of FrameHook doesn't spam your log file or the server console, then your game frame hook isn't firing, which explains why requests aren't processed.
If it's a public...
Forum:
Extensions
02-18-2021, 10:42
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
Which game is your server running, and what Linux distribution and version are you using?
I can send a debug version for Linux that prints everything that happens during the HTTP request, but if...
Forum:
Extensions
02-15-2021, 10:04
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
I did the same with version 1.2.3 and it works fine:
Maybe try another HTTP extension like SteamWorks to see if it really is an issue with REST in Pawn, or if there is an issue with your server....
Forum:
Extensions
02-15-2021, 08:35
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
You are missing http:// in your URL. I would also check your sourcemod/logs folder for errors.
Forum:
Extensions
12-09-2020, 08:50
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/09/13)
I can't reproduce this, are you sure you are using http://? You should only need a valid SSL certificate when using https://.
Forum:
Extensions
11-06-2020, 04:27
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/09/13)
I don't run any servers, so I don't know how it performs on a busy server, but I tested on a local server and was able to perform over 800 requests per second without noticing any performance issues....
Forum:
Extensions
09-13-2020, 06:05
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/07/16)
Minor update:
Added x64 and Mac builds
Added JSON decoding flags
Added ability to limit send and receive speed (thanks Kxnrl)
Set default user agent
Updated HTTPStatus enum
Updated...
Forum:
Extensions
07-23-2020, 01:52
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/07/16)
You can pass a DataPack as value with any data you want.
Forum:
Extensions
07-22-2020, 12:36
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/07/16)
No, if your HTTP client is defined globally, there's no reason to delete it. You can just reuse it for future requests.
Forum:
Extensions
07-17-2020, 04:00
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/06/21)
Version 1.2.0 did not properly clean up requests, please update to version 1.2.1 (https://github.com/ErikMinekus/sm-ripext/releases/tag/1.2.1).
1.2.1 also adds support for 64-bit integers in JSON,...
Forum:
Extensions
06-21-2020, 14:45
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2020/06/21)
New release:
Added ability to download and upload files
Added ability to iterate over keys in a JSON object
Optimized performance (thanks Gunslinger)
Download...
Forum:
Extensions
05-19-2020, 03:52
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.1 - HTTP client for JSON REST APIs (Updated 2020/03/24)
It's still not possible, but your use case is legitimate, so I'll look into it.
Forum:
Extensions
03-06-2020, 14:28
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.1 - HTTP client for JSON REST APIs (Updated 2019/12/28)
So you base64-encoded "username:password" and appended the result after "Basic ", as explained on the page I linked?
Edit: seems to work.
public void OnPluginStart()
{
HTTPClient client...
Forum:
Extensions
03-06-2020, 13:27
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.1 - HTTP client for JSON REST APIs (Updated 2019/12/28)
Setting the Authorization header should work.
https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Authorization
Forum:
Extensions
12-28-2019, 06:00
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn 1.1 - HTTP client for JSON REST APIs (Updated 2019/12/28)
New release:
Switched to cURL multi interface with libuv for better performance
Added HTTP/2 support
Added ability to get response headers
Added JSONObject.HasKey native (thanks Rachnus)
...
Forum:
Extensions
11-22-2018, 11:00
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn - Communicate with JSON REST APIs
Thanks slekenda, this should be fixed in 1.0.6 (https://github.com/ErikMinekus/sm-ripext/releases/latest).
Forum:
Extensions
08-28-2018, 04:00
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn - Communicate with JSON REST APIs
New release:
Possible fix for the crashes (thanks Peace-Maker)
Added ConnectTimeout, FollowLocation and Timeout properties to HTTPClient (thanks CrazyHackGUT)
Added error message to...
Forum:
Extensions
10-03-2017, 06:12
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn - Communicate with JSON REST APIs
I think the code examples in the second post are better examples than the test plugin, as they do show the HTTPClient being stored in a global variable, and they are well documented.
Forum:
Extensions
09-03-2017, 05:42
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn - Communicate with JSON REST APIs
I agree, it shouldn't. You should know which fields are returned based on the API's documentation. And APIs should be versioned so that changes don't break existing calls.
I'm not sure what's...
Forum:
Extensions
08-31-2017, 03:57
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn - Communicate with JSON REST APIs
Version 1.0.3 now comes with the CA bundle in the configs/ripext folder, instead of it being hardcoded to /etc/ssl/certs/ca-certificates.crt. This fixes the issue above and also allows you to replace...
Forum:
Extensions
07-29-2017, 11:22
Replies:
116
REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/08/22)
Views:
117,392
Posted By
DJ Tsunami
Re: REST in Pawn - HTTP and JSON methodmaps
I intentionally left out object iteration to keep the code simple. Besides, when you're talking to an API you should know which fields are returned. If you're not talking to an API, I believe...
Showing results 1 to 25 of 29
Page 1 of 2
1
2
>
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Server Discussion
Source Servers (SRCDS)
HL1 Servers (HLDS)
AMX Mod X
News
Bug Reports
General
Off-Topic
Plugins
Suggestions / Requests
Approved Plugins
New Plugin Submissions
Unapproved/Old Plugins
Translation Request
High-Traffic Plugins
GunGame
UAIO (Ultimate All-In-One Plugin)
xREDIRECT
CSDM
AMX Super
RuneMod
Zombie Plague Mod
SuperHero Mod
News
Tech Support
Scripting Help
Off-Topic / General Chat
Heroes
Suggestions / Requests
Approved Heroes
New Submissions
Unapproved/Old Heroes
Module Heroes
SuperHero Mod Stats - By 123
(OLD) Bug Reports
Scripting
Scripting Help
Code Snippets/Tutorials
Module Coding
Donor Access
SourceMod
News
General
Plugins
Plugins
Unapproved Plugins
Plugin/Gameplay Ideas and Requests
High-Traffic Plugins
SourceMod Anti-Cheat
Zombie:Reloaded
SourceBans / SourceBans++
VSH / Freak Fortress
Store
SM_Hosties
HLstatsX:CE
Scripting
Extensions
Snippets and Tutorials
Donor Access
Metamod: Source
Metamod:Source Plugins
Metamod:Source Questions
Coding MM:S Plugins & SM Extensions
Hosted Stuff
Asherkin's Plugins
TFDodgeball
TF2Items
SteamTools
Bail's Plugins
CSDM
CS:S DM
Off-Topic & Trash
Off-Topic
Trash
All times are GMT -4. The time now is
13:19
.
DMCA
-
Archive
-
Top
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode