lammertb / libhttp

Multi platform HTTP and HTTPS library
MIT License
957 stars 131 forks source link

How to embed it ? #58

Open kktos opened 5 years ago

kktos commented 5 years ago

Hi there, I'm interested by embedding the lib into my app but I'm afraid the documention is clearly out of date. Any help would be welcome :) Cheers.

evilsalvo commented 5 years ago

Hi whats the platform/target?

kktos commented 5 years ago

Hi Salvo. Platform's windows. Anyway, I've noticed there's an old version, the 1.8, which works like a charm. I suppose the current is still a WIP.

evilsalvo commented 5 years ago

Hey kktos.

I was using this for its websocket support as well as usual webserver functionality....

I was able to get the latest and greatest working with QNX 6.6, by changing the function signature of the examples he provided with the latest actual API.... will try with Windows in my spare time. The main changes were just renames on his structures, and the use of ctx as passed parameters in his examples.

I couldn't get the c process client example working though, no errors just no connection. Though websocket clients work through a chrome browser fine.

Though you gave me an idea I might try the older code before he forked it to libhttp to see if it returns any useful error info.