How to use BFileRequest, etc

I was wondering if there was any information on how to use BFileRequest or how to download a file through an API like with curl but with just using the haiku API. There doesn’t seem to be any API documentation on it so I’m asking if anybody would have any idea of how to do this.

BFileRequest is for local files (file://… or similar). For downloads you will want a BHttpRequest.

A simple example in fRiSS:

Thank you for the response! That could be a possible fix task with writing documentation on the network kit. Also, I’m actually working on this:

1 Like