Welcome Guest, Not a member yet? Register   Sign In
Output is filled with warning data
#3

(This post was last modified: 09-22-2018, 08:07 AM by richb201.)

Yeah that is exactly what I had. It wasn't working on linux so I took a look at the text in a file you sent me the link for:

The only allowed values for the Content-Type header are:
application/x-www-form-urlencoded
multipart/form-data
text/plain

However, I changed it back to what should work:

$output= $this->output
   ->set_content_type('application/json')
   ->set_header("Access-Control-Allow-Origin", "*")
   ->set_output(json_encode($table));


The data seems to come across fine except it is appended to the junk in the attached file still. I had a similair issue a few months ago and the answer was to have the buffer be sent by a separate page. In this situation there is no UI, this is merely a daemon that talks to the chrome Extension. How can I purge the output buffer prior to sending?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
Output is filled with warning data - by richb201 - 09-22-2018, 03:09 AM
RE: Output is filled with warning data - by richb201 - 09-22-2018, 06:32 AM



Theme © iAndrew 2016 - Forum software by © MyBB