jira-importer opened a new issue, #848: URL: https://github.com/apache/httpcomponents-core/issues/848
**[Hubert Sieh](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=siehhube)** opened **[HTTPCORE-111](https://issues.apache.org/jira/browse/HTTPCORE-111?redirect=false)** and commented Following your example for the basic, non-blocking HTTP server, I am trying to simulate the info that you would get from the standard apache httpd daemon, e.g. remote IP, URI and return code that is typically found in access.log. First, I tried getting this information from the EventLogger/EventListener if (conn instanceof DefaultNHttpServerConnection) { DefaultNHttpServerConnection d = (DefaultNHttpServerConnection) conn; logger.info("connection from " + d.getRemoteAddress().getHostAddress()); logger.info("requested: " + d.getHttpRequest().getRequestLine().getUri()); logger.info("responded: " + d.getHttpResponse().getStatusLine().getStatusCode()); } ... but this causes some IO/Exception Second, I tried logging this from the handle method in your HttpRequestHandler, but I do not see how I can get the remote IP address. Seems like I can get the remote IP from the eventlistener, but not the URI and status code. Or I can get the URI and status code from the httprequesthandler, but not the remote IP. Thanks. --- **Affects:** 4.0-alpha5 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
