php JSON RCP Call

I am trying to use php to access a JSON RPC server that has no URL and cannot use http headers.

We can access the JSON server using Telnet to an IP and port, then type in a command like:
{“id”:1, “method”:“system.login”, “params”:[“username”,“password”]}

and it returns a result.

All of the examples I have found for JSON uses http post, the server does not like this.

Any help on how to accomplish this in php?

Thanks;
Terry

Use cURL

But the server is not a http server, it is just looking for the raw JSON data on port 3994.

http://jsonrpcphp.org/?page=crashcourse&lang=en

Sponsor our Newsletter | Privacy Policy | Terms of Service