Attention | Topic was automatically imported from the old Question2Answer platform. | |
Asked By | Bush2Tree |
Hey all,
Not sure if this is the right place to ask this question, but I’m attempting to send some json data from godot to a django server. The godot-side code looks a bit like this:
var obj_to_send = {
"field": "some data"
}
var SERVER_ADDRESS = "http://localhost:8000/django_app_name/upload"
$HTTPRequest.request(SERVER_ADDRESS, PoolStringArray(), true, HTTPClient.METHOD_POST, JSON.print(obj_to_send))
However, the django server doesnt receive anything. There isn’t even a message about a connection being made–its just nothing. Does anyone know what I could be doing wrong?
Also, if this is the wrong place to ask, please let me know where would be a better place.
Any help is appreciated.
I should add that when checking for what $HTTPRequest.request()
returns, I get OK
.
Bush2Tree | 2020-05-15 02:03