#ifdef DEBUG
cerr << __FILE__ << ": real_run()" << endl;
#endif // DEBUG
- char buf[BUFSIZ];
+ //char buf[BUFSIZ];
while (!stop) {
HTTPRequest request;
socket >> request;
// Command command = parse_command(request.uri);
//signal_command_received().emit(command);
#ifdef DEBUG
- cerr << "Request: " << endl;
- for (Request::const_iterator i = request.begin(); i != request.end();
- i++) {
- cerr << " " << i->first << ": " << i->second << endl;
- }
+ cerr << "Request: " << request << endl;
+ //for (HTTPRequest::const_iterator i = request.begin();
+ // i != request.end(); i++) {
+ // cerr << " " << i->first << ": " << i->second << endl;
+ //}
#endif // DEBUG
// FIXME - hacer respuesta XML.
// La respuesta hay que mandarla asincrónicamente porque no puedo
response_xml << " <p>versión 0.2</p>" << endl;
response_xml << " <h2>Pedido HTTP</h2>" << endl;
response_xml << " <ul>" << endl;
- for (Request::const_iterator i = request.begin(); i != request.end();
- i++) {
+ for (HTTPHeaders::const_iterator i = request.headers.begin();
+ i != request.headers.end(); i++) {
response_xml << " <li><b>" << i->first << ":</b> "
<< i->second << endl;
}