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, Hatef
On Mon, Sep 17, 2018 at 3:02 AM Daniel Stenberg <[email protected]> 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": > > https://github.com/curl/curl/pull/3004 > > -- > > / daniel.haxx.se >
------------------------------------------------------------------- Unsubscribe: https://cool.haxx.se/list/listinfo/curl-library Etiquette: https://curl.haxx.se/mail/etiquette.html
