Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??

I've never used IIS, so I can't be a lot of help with that. Having said that, I suspect (from "only saw 200 there even when the page broke") that particular 200 refers to successfully rendering the page which contained little more than '<p>Page cannot be displayed</p>': lines in the log just prior to that may be more informative.

The message "Page cannot be displayed" is intended for general users, not developers. Use whatever development tools are provided by your browser to get a more informative message.

I'd recommend adding 'use warnings;' to all your scripts (unless you have a very good reason not to). While you're experiencing difficulties in the development phase, you might want to make that 'use warnings FATAL => 'all';'.

Try cutting your CGI script down to the bare bones (i.e. no spreadsheet processing or file uploads) and ensuring that works. Then try uploading a single, existing file from a known location and sort out any bugs there. Once all that's working, add the code to generate the upload file and continue testing. Doing this, in a stepwise progression from simple to complex, will mean basic problems will be found early on and you'll be testing new code at each stage rather than trying to test everything at once.

Have you looked in the CGI documentation? Many of its sections look like they may be useful in this specific instance, including (but not limited to): DEBUGGING, CREATING A FILE UPLOAD FIELD and PROCESSING A FILE UPLOAD FIELD.

The following threads (on this site) are a little old but may still provide useful information: Troubleshooting Perl CGI scripts and CGI Help Guide.

-- Ken


In reply to Re^3: Capture HTTP Error in Perl by kcott
in thread Capture HTTP Error in Perl by suzun30

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (2)
As of 2024-04-24 23:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found