Welcome Guest, Not a member yet? Register   Sign In
500 error from call to XMLHttpRequest()
#4

(09-15-2018, 01:58 AM)richb201 Wrote: valid point. My problem might be a need to set a Content-Length in the header. 

I added:

->set_header("Content-Length: 1000")

And it still gives me a 500 error, but at least the error in the error log went away. How do I get the actual length of a json encoded structure (instead of 1000)?

strlen(json_encode($table));
??
Reply


Messages In This Thread
RE: 500 error from call to XMLHttpRequest() - by Piotr - 09-15-2018, 06:56 AM



Theme © iAndrew 2016 - Forum software by © MyBB