Loading ...
Sorry, an error occurred while loading the content.

Re: Script is not working in CGI but is working locally

Expand Messages
  • daymobrew@yahoo.com
    ... Yes ... Headers (and Content-type is one) always need a blank line before the data.
    Message 1 of 4 , Aug 5, 2004
    • 0 Attachment
      --- In perl-beginner@yahoogroups.com, "Irek Rybark" <irek@p...> wrote:
      > Hello!
      > Bull's-eye!
      > I re-uploaded the file in text mode and it is working. Does it have
      > something to do with CR/LF conversion?
      Yes

      > Btw, why
      > > print "Content-type: text/html\n";
      > > should have two '\n'.
      > ?
      Headers (and 'Content-type' is one) always need a blank line before
      the data.

      >
      > Irek
      >
      > --- In perl-beginner@yahoogroups.com, daymobrew@y... wrote:
      > > --- In perl-beginner@yahoogroups.com, "Irek Rybark" <irek@p...>
      > wrote:
      > > > Hi!
      > > > I am new to perl and CGI. I am even not sure that this is
      > > > more perl or CGI problem.
      > > >
      > >..... CUT!
      >
      > > So, it seems that CSVvalidate() is failing.
      > > One possibility - the input file was uploaded by ftp as binary
      > instead
      > > of ascii? It might make (though shouldn't) make a difference.
      > >
      > > BTW, your Content-Type is html but you aren't
      > providing '<html>'
      > > and '<body>' tags. Also,
      > > print "Content-type: text/html\n";
      > > should have two '\n'.
      > > I find the CGI module helpful for headers and other CGI
      > functionality.
      > > You may not need it if your script is not responding to a form.
      > >
      > > Damien.
    Your message has been successfully submitted and would be delivered to recipients shortly.