Re: REST in Pawn 1.2 - HTTP client for JSON REST APIs (Updated 2021/02/07)
i have sv_hibernate_when_empty always at 0, with this extension my server goes in hibernation like -> sv_hibernate_when_empty 1
edit: it's not the extension, its eitems.smx or estickers.smx |
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:
|
Re: REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/06/06)
Is it possible to log request?
When I try to send some POST data to my API (Laravel), backend receives empty request (headers and method are correct, but there is no POST data). Code:
JSONObject BanJson = new JSONObject(); |
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:
PHP Code:
|
Re: REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/06/06)
Laravel:
PHP Code:
PHP Code:
@edit: PHP Code:
@edit-2: I've saved some backend logs: PostForm(): PHP Code:
PHP Code:
PHP Code:
|
Re: REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/06/06)
4 Attachment(s)
Quote:
Laravel should automatically fill the Request object if the Content-Type is application/json. PHP's $_POST variable will only be filled when posting form data. |
Re: REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/06/06)
i don't know why but after i move to my new VPS the PUT think is not working, always return HTTPStatus_Invalid = 0.
My Old VPS : Plesk Panel (PHP 7.4.20 + Server API FPM/FastCGI) My New VPS : Cyberpanel (PHP 7.4.20 + Server API LiteSpeed V7.9) "REST in Pawn" (1.2.3) by Tsunami: Provides HTTP and JSON natives for plugins i test with Postman it's working, but the plugin always return HTTPStatus_Invalid = 0. anyone experiencing the same thing? |
Re: REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/06/06)
i try with Debug builds from you above
PHP Code:
|
Re: REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/06/06)
It is possible to send non-chunked request body? Sometimes for shared web-hostings it breaks everything, unfortunately.
|
Re: REST in Pawn 1.3 - HTTP client for JSON REST APIs (Updated 2021/06/06)
Quote:
PHP Code:
|
All times are GMT -4. The time now is 04:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.