bigelos
asked on
Batch file to create a web page thru cgi
Setup: web server residing on NT file server.
Question:
I'm trying to generate a web page using a simple batch file. However, the problem I'm running into is in echoing a blank line to the webserver after
Content-type: text/html
In Perl, this would be
print "Content-type: text/html\n\n";
In DOS, I'm using
@echo off
echo Content-type: text/html
Now, how do I echo a blank line? Type echo on a line by itself just echos echo is off.
It seems to me that this question should be really easy, but if it isn't, let me know.
Thanks!
Question:
I'm trying to generate a web page using a simple batch file. However, the problem I'm running into is in echoing a blank line to the webserver after
Content-type: text/html
In Perl, this would be
print "Content-type: text/html\n\n";
In DOS, I'm using
@echo off
echo Content-type: text/html
Now, how do I echo a blank line? Type echo on a line by itself just echos echo is off.
It seems to me that this question should be really easy, but if it isn't, let me know.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks. I knew it was something like that, but I had the space between echo and the period, and that wasn't working very good.