Gemini proxy image display

On Thu Sep 10, 2020 at 11:19 AM CEST, Mr. Leveck wrote:
> On 9/10/20 9:12 AM, Kevin Sangeelee wrote:
> > Do you mean to throw away the first 8k of content bytes?
> 
> Yes.
> 
> All this does is toss out the status and meta data. I could specify
> 8MB
> to toss out, and the result would be the same in PHP using this
> method.

I'm thinking you're going to toss out 8K which is probably much more
than just the status and the meta data. fread is going to read past
the \r\n terminating the status and it'll keep reading... and then you
toss it all out. I think what you need to do is read everything, and
then search and toss all the bytes up to the first \n or something
like that.

Cheers
Alex

---

Previous in thread (5 of 10): 🗣️ Mr. Leveck (leveck (a) leveck.us)

Next in thread (7 of 10): 🗣️ Mr. Leveck (leveck (a) leveck.us)

View entire thread.