Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ MT-multithreading and servers » CGI-BIN bug with Apache Server
Re: CGI-BIN bug with Apache Server [message #28226 is a reply to message #28225] Tue, 24 August 2010 09:59 Go to previous messageGo to previous message
ratah is currently offline  ratah
Messages: 107
Registered: July 2010
Experienced Member
It works!

I forgot to close html tag at the end!!

here is the correct code

#include <Core/Core.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
   String ss = "";
   

   ss += "Content-type: text/html";
   ss += "<html><head><title>Hello!</title></head><body>";       
   ss += "Hi man! See my C++ CGI app?!";
   ss += "<h1>Good!</h1>";
   ss += "</body></html>";

   
   Cout() << ss;
}

[Updated on: Tue, 24 August 2010 09:59]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: MT again
Next Topic: Socket: SYN_SENT stalled when ipscan connections in CoWork (MT)
Goto Forum:
  


Current Time: Fri Jul 18 03:40:26 CEST 2025

Total time taken to generate the page: 0.04273 seconds