homepage Welcome to WebmasterWorld Guest from 54.163.91.250
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
Forum Library, Charter, Moderators: coopster & jatar k & phranque

Perl Server Side CGI Scripting Forum

    
NMS FormMail FireFox Problem
Can't See Success Page in FireFox
tlefcovitch




msg:4023743
 1:43 pm on Nov 12, 2009 (gmt 0)

Hi All

I am using NMS Formmail 3.14c1 on windows 2000 Professional Server fully patched.

I have been using NMS FormMail for some time now without problem but I have just found that when using FireFox 3.5.5 FormMail does not return the default success page but instead I get a message box asking the user how FireFox should open the file. The message is sent correctly to the recipient if the user presses the Cancel Button on the message box. (Some what counter intuative)

From searching the internet it seems that the default success page "header" is the problem - but I can not find away to resolve this.

Using "LiveHTTPheaders" in FireFox I see the response from the server as "Content-type: application/octet-stream.

I have tried a few hacks but nothing I do will make it work as expected.

Using IE the form works as expected even though the same Content-type header is returned.

BTW I have also tried using Matts FormMail but I get the same result.

 

rocknbil




msg:4024061
 9:08 pm on Nov 12, 2009 (gmt 0)

Welcome aboard tlefcovitch, this is most likely a server issue (?) Doesn't do this in IE?

I don't play much with open source applications, always coding my own, but you could try this. It should really already be there.

Locate the portion of the script that outputs the response. You should see a print command.

print "first line of response";

Immediately before this line, add

print "content-type:text/html\n\n";

If you can't locate it, you can put it at the top of the script, immediately following the shebang

#!/usr/bin/perl
print "content-type:text/html\n\n";

This may or may not break something else, but shouldn't.

The only think I can think of is I seem to recall when working with Perl scripts in Windows based server environments, the content type header may not be required like it is on Linux. You might have one configured with that in mind and it's not generating content type headers, and the server is errantly generating the wrong, or no, headers.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Perl Server Side CGI Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved