Getting response body - trying to consume a web request from a service?? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Getting response body - trying to consume a web request from a service?? (/showthread.php?tid=46564) |
Getting response body - trying to consume a web request from a service?? - El Forum - 11-06-2011 [eluser]shoelessone[/eluser] Hello all! So, a tiny bit of backstory: I'm trying to build an endpoint for a service that I think is providing an Avro serialized bit of data. IE, I'm basically not sure what I'm doing, but I think I should be getting a string, which I will then un-serialize using some Avro library. Anyway, the service automatically calls my URL, and my controller is being called with the following header data with this code: Code: foreach($this->input->request_headers() as $key => $thing){ Now, the output is osmething like this: Code: 1X-xc-tenant-id - VEVOQU5USUQtMQCxJDeT6bvdiiNm2rYo/lgloAuhLAYIxeq1m5Q4py7jnQ== Now, what I want, is some sort of data! An example I looked at in the ruby world does something like request.body.read to get the data that I'm trying to get, but I'm not sure how to do this here. Can anybody give me any hints or tips? Oh, also, FWIW the content is base64 encoded I believe. <3 |