💾 Archived View for rawtext.club › ~sloum › geminilist › 002641.gmi captured on 2020-09-24 at 01:03:52. Gemini links have been rewritten to link to archived content

View Raw

More Information

-=-=-=-=-=-=-

<-- back to the mailing list

Gemini proxy image display

Mr. Leveck leveck at leveck.us

Thu Sep 10 18:35:10 BST 2020

- - - - - - - - - - - - - - - - - - - 

On 9/10/20 11:27 AM, Alex Schroeder wrote:

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

One would think, but that is not the case. Since everyone is hung up on that instead of my actual query, I have captured that initial status and now display it on the top of gemini:// pages on the proxy. Prior to that I was 100% successful in capturing all the document content the proxy code was requesting. All I have done now is assigned it to a var named $status and print that in a displayed page header.

I am looking for advice on binary files. If anyone has any thoughts on that, it would be much appreciated.

-- jynxgopher://1436.ninjagemini://1436.ninja/https://leveck.us