cpr icon indicating copy to clipboard operation
cpr copied to clipboard

Support for custom socket?

Open lattice0 opened this issue 5 years ago • 5 comments

I'm looking for an HTTP library that has support for custom sockets. That is, I implement my own socket open, connect, send functions. I know that libcurl has this option. Is it implemented in cpr? If not, is it easy to implement?

I'm reading through a bunch of HTTP libraries and therefore I don't have the time to read the sources of each one, so I'll be glad if someone could give me this information.

Thank you very much :)

lattice0 avatar Aug 18 '20 08:08 lattice0

Hi @lucaszanella. To make it short: No, CPR currently does not support custom sockets. We also currently do not plan to add support for this.

I'm keeping this one open, in case somebody wants to create a PR for this.

For later reference: https://curl.haxx.se/libcurl/c/externalsocket.html

COM8 avatar Aug 18 '20 13:08 COM8

I would like to work on the issue in the next few weeks and hopefully create a PR :)

simon-berger avatar Jun 27 '22 08:06 simon-berger

Sure, thanks @simon-berger !

COM8 avatar Jun 27 '22 14:06 COM8

Unfortunately, I won't have the time to work on the issue anymore. Therefore I unassigned myself and hope that someone else wants to take over this issue.

simon-berger avatar Jul 25 '22 17:07 simon-berger

Bumping. This feature would be great

Chrys4lisfag avatar Oct 03 '22 09:10 Chrys4lisfag