Weird SSL problemgreenspun.com : LUSENET : S-Mart Shopping Cart : One Thread
I have the script up and running on my virtual domain. Everything works fine, but my SSL server is on a diferent machine, I change all the REMOTE_HOST TO REMOTE_ADDR. I changed the url to https://https.secure.com/domain/cgi-bin/smart.cgi?command=buy1 But the server respond that "Premature end of script headers: /usr/wwws/htdocs/interven/cgi-bin/smart.cgi" Am I missing something? I read carefully all the messages regarding SSL and didn4t find anything like it. Anybody?
-- Bert Corrado (email@example.com), July 11, 1999
A lot of the times end of script headers usually means that you have an extra carriage return in the script.
The best thing to do is to telnet to your provider and go to the directory where your script resides. Once there, debug your script by typing:
perl -d smart.cgi
Perl will respond and tell you what's wrong. Once it tells you, your best option is to load a good html editor that won't add extra carriage returns. Unfortunately, Word and Notepad and such have a tendency for doing so, so be careful.
Hope this helps you!
Lance Nakamura Thingamabobs www.thingamabobs.com "The great place for cool stuff!"
-- Lance Nakamura (firstname.lastname@example.org), July 11, 1999.