Gemini proxy image display

Mr. Leveck leveck at leveck.us
Thu Sep 10 16:40:42 BST 2020



On 9/10/20 9:28 AM, Charles E. Lehner wrote:
> 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.
> 

I get all the content just fine...

I am looking for advice on serving binary files via my proxy.

-- 
jynx
gopher://1436.ninja
gemini://1436.ninja/
https://leveck.us


More information about the Gemini mailing list