Copyright ©

Mongoose OS Forum

ATTENTION! This forum has moved to:

Do not post any new messages.

segfault when calling mg_set_protocol_http_websocket on mg_connection with https URL.

I have the following method:

int mongooseHTTPUpload(const char* url,const char* extra_headers,const char* post_data){
    httpClientNc = mg_connect_http(&mgr, ev_handler, url, extra_headers, post_data);

then I call it with:

If I use http instead, I don't get the segfault. How do I establish a connection to a server using an HTTPS url?


  • Ok. Figured it out. Had to compile with MG_ENABLE_SSL. I thought SSL was enabled by default.
Sign In or Register to comment.