Gemini proxy image display

Charles E. Lehner cel at celehner.com
Thu Sep 10 16:28:06 BST 2020


Hi Mr. Leveck,

On Thu, 10 Sep 2020 09:19:19 -0600
"Mr. Leveck" <leveck at leveck.us> wrote:

> On 9/10/20 9:12 AM, Kevin Sangeelee wrote:
> > Do you mean to throw away the first 8k of content bytes?
> > 
> > 
> > Sent from phone  
> 
> 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

Perhaps you could use fgets($socket) instead, to read just the first line. The server might send the status + meta line in the same packet as the initial body data. In that case, reading just the first line with the buffered reader will save the rest of the body for later reading.

-- 
Regards,
Charles L.
gemini://celehner.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.orbitalfox.eu/archives/gemini/attachments/20200910/9f1c7aaa/attachment.sig>


More information about the Gemini mailing list