Kellner icon indicating copy to clipboard operation
Kellner copied to clipboard

evhttp_add_header broken?

Open q121q opened this issue 14 years ago • 0 comments

hello, recently I installed the extension and tried to use the httpclient.php in the demos/misc.. the file sends the request but it only has a GET /dir_goes_here HTTP/x.x\r\n in the headers and it totally ignores the evhttp_add_header function (most webservers return 400 - bad request) .. if anyone knows what goes wrong here, please let me know.


edit: after some digging I found out that evhttp_make_header uses output_headers to append the key value in the request/response.. so the evhttp_request_add_header needs to use output_header too in order to work!

q121q avatar Jun 30 '11 17:06 q121q