Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

evhttp_add_header broken? #3

Open
q121q opened this issue Jun 30, 2011 · 0 comments
Open

evhttp_add_header broken? #3

q121q opened this issue Jun 30, 2011 · 0 comments

Comments

@q121q
Copy link

q121q commented Jun 30, 2011

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant