Open vladimircicovic opened 6 years ago
this:
int page(struct http_request *);
int page(struct http_request *req) { http_response(req, 200, "Hello World", 12); return (KORE_RESULT_OK); }
does not work. When I do: curl -k https://localhost:8888 Warning: Binary output can mess up your terminal. Use "--output -" to tell Warning: curl to output it to your terminal anyway, or consider "--output Warning: " to save to a file
But if I do this:
int page(struct http_request *req) { http_response(req, 200, "Hello World", 11); return (KORE_RESULT_OK); }
Change at size of Hello World ( I guess this is because SSL termination with \n or similar) It works fine.
this:
include <kore/kore.h>
include <kore/http.h>
int page(struct http_request *);
int page(struct http_request *req) { http_response(req, 200, "Hello World", 12); return (KORE_RESULT_OK); }
does not work. When I do: curl -k https://localhost:8888 Warning: Binary output can mess up your terminal. Use "--output -" to tell Warning: curl to output it to your terminal anyway, or consider "--output Warning:" to save to a file
But if I do this:
include <kore/kore.h>
include <kore/http.h>
int page(struct http_request *);
int page(struct http_request *req) { http_response(req, 200, "Hello World", 11); return (KORE_RESULT_OK); }
Change at size of Hello World ( I guess this is because SSL termination with \n or similar) It works fine.