You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I want to use the library in my own Qt/QML project. I want to send a json command to an apache webserver which runs a php script. The script analyzes the method and send an answer.
So I did the following:
sp = new Sp(parent, "http://localhost:84/~martin/gc/rpcJSON.php");
This is kind of difficult to answer without knowing what's going on on the server. It seems that there is something wrong on the server side. Have you tried running your own server with this library (JCON)?
You mention that you're using an Apache web server? Web servers are mostly listening on ports 80 and 443 (for HTTP and HTTPS traffic). This library, and JSON RPC in general, doesn't work over the HTTP protocol, but instead works on a lower layer (TCP or WebSockets protocols as mentioned in the README). Therefore, you have to connect against a server running on a given port with one of those protocols...
Hi,
I want to use the library in my own Qt/QML project. I want to send a json command to an apache webserver which runs a php script. The script analyzes the method and send an answer.
So I did the following:
consturctor of Sp:
The library will send the following to the server:
But the server will send a 400 bad request error.
What can I do to solve the problem?
Thank you for your help.
BR
martin
The text was updated successfully, but these errors were encountered: