http.Post
Example
Write a file in PHP, and invoke it from Lua. The output below is written in the file, not in the console.
Output: This is a test. Gmod Test
Sends an asynchronous POST request to an HTTP server. Internally calls HTTP.
HTTP requests returning a status code >= 400
are still considered a success and will call the onSuccess callback.
The onFailure callback is usually only called on DNS or TCP errors (e.g. the website is unavailable or the domain does not exist).
unsuccessful
error. Try using the Range header to download the file in chunks.192.168.0.1
, or 127.0.0.1
) won't work.
-allowlocalhttp
. (Dedicated servers only)Write a file in PHP, and invoke it from Lua. The output below is written in the file, not in the console.