Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Memory problem 1

Status
Not open for further replies.

stewartwebb

Programmer
Jan 6, 2004
92
GB
Hi,

In the company I work for we use cgi to link cobol with the web.
We have occured a memory problem every now and then where we seem to have no memory and this occurs when reading in fields from the web to our cobol programs.
Is there a limit to the number of fields or the size of the fields that causes cgi to 'break'?

Many thanks

Stewart
 
There is no limit I am aware of. If you use CGI.pm (or maybe even if not) to get the form data, CGI.pm might be set to limit the data a script can recieve. Look at the CGI.pm documentation for details, it's under "Avoiding Denial of Service Attacks".
 
If you are sending the info via an HTTP GET, then there is a limit.....
With IE, if you are using the GET method, you are limited to a maximum of 2,048 characters (minus the number of characters in the actual path, of course). I'm not sure what it is with other browsers/http clients.

If you are using an HTTP POST, then you should not have a problem with the size of the submission.

'hope this helps

If you are new to Tek-Tips, please use descriptive titles, check the FAQs, and beware the evil typo.
 
good point goBoating. The GET method is very limited, so check that first Stewart.
 
Thanks both for the reply, I am using POST and still have the problem but don't worry i've found another way of dealing with the problem.

Thanks again

Stewart
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top