curl / Mailing Lists / curl-library / Single Mail


Re: How to Receive HTTP2/Push in memory? Need a working example.

From: hatef madani via curl-library <>
Date: Mon, 17 Sep 2018 10:23:43 +0430

Thanks, Daniel,
Your example is working!
The main difference I can find between my code and yours is the way we used
Memory Structure.
I tried to pass it to server push callback as user pointer and you set it
in a global variable. But I'm not sure this can be the reason for the error.
I appreciate your attention.
Best Regards,

On Mon, Sep 17, 2018 at 3:02 AM Daniel Stenberg <> wrote:

> On Sun, 16 Sep 2018, hatef madani wrote:
> > Yes, it does. It works nicely and it's saving pushes in files. I want it
> in
> > memory to send to send to other modules of my program.
> To me, it seems like the push logic works (which makes it save the pushed
> file
> correctly) and it's just your code that isn't doing things the proper way.
> I wrote up an example that seems to "just work":
> --
> /

Received on 2018-09-17