1

I am using the open source c-icap for modifying HTTP transaction, between a client and a server.

http://www.firefly.kutc.kansai-u.ac.jp/~k843966/c-icap/doc/structci__service__module.html

Is it possible to drop a request completely? I want to be able to stop a request from ever getting to the server. I know it is possible to send a customized response using.

int     ci_http_response_create (ci_request_t *req, int has_reshdr, int has_body)

I want to be able to just drop the request completely.

4

1 回答 1

0

我找到了我的答案。事实证明,如果我使用 ci_http_response_create(),而不添加任何标头,请求将被阻止到达服务器。

于 2016-02-04T10:42:41.487 回答