Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

Odd CGI behavior

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


gripley at trentu

May 8, 2008, 2:28 PM

Post #1 of 3 (122 views)
Permalink
Odd CGI behavior

Hi:

I have a puzzle that has been nagging me all day. I'm POSTing from a
TextArea to a CGI script that reads STDIN and writes the result to a
file. File size is about 5K. Three times out of five the routines work
perfectly. Two times out of five STDIN is truncated to exactly 1378
bytes. My Apache (2.x) error file shows an unspecified [error] each
time this happens. Nothing I have tried (change of compilers, etc.) has
made a difference. Does this ring any bells?

Gord

* * * * * * * * * * * * * * * * * * * * * *
* Gord Ripley

* Systems Librarian,
* Bata Library, Trent University,
* 1600 West Bank Drive
* Peterborough, Ontario K9J 7B8
*
* Voice : 705- 748-1011 ext. 7517
* E-mail : gripley[at]trentu.ca
* Web : http://people.trentu.ca/gripley/
*
* * * * * * * * * * * * * * * * * * * * * *


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


joshua at slive

May 9, 2008, 9:56 AM

Post #2 of 3 (109 views)
Permalink
Re: Odd CGI behavior [In reply to]

On Thu, May 8, 2008 at 5:28 PM, Gord Ripley <gripley[at]trentu.ca> wrote:
> Hi:
>
> I have a puzzle that has been nagging me all day. I'm POSTing from a
> TextArea to a CGI script that reads STDIN and writes the result to a
> file. File size is about 5K. Three times out of five the routines work
> perfectly. Two times out of five STDIN is truncated to exactly 1378
> bytes. My Apache (2.x) error file shows an unspecified [error] each
> time this happens. Nothing I have tried (change of compilers, etc.) has
> made a difference. Does this ring any bells?

The "unspecified [error]" is most likely your CGI script writing to
stderr. The presence of this line leads me to believe that the problem
is someplace in your cgi script.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


gripley at trentu

May 9, 2008, 10:04 AM

Post #3 of 3 (109 views)
Permalink
Re: Odd CGI behavior [In reply to]

Hi Josh:

Exactly right, thanks. I have recoded, and the problem disappeared.

Gord

* * * * * * * * * * * * * * * * * * * * * *
* Gord Ripley

* Systems Librarian,
* Bata Library, Trent University,
* 1600 West Bank Drive
* Peterborough, Ontario K9J 7B8
*
* Voice : 705- 748-1011 ext. 7517
* E-mail : gripley[at]trentu.ca
* Web : http://people.trentu.ca/gripley/
*
* * * * * * * * * * * * * * * * * * * * * *


>>> joshua[at]slive.ca 09/05/2008 12:56 pm >>>
On Thu, May 8, 2008 at 5:28 PM, Gord Ripley <gripley[at]trentu.ca> wrote:
> Hi:
>
> I have a puzzle that has been nagging me all day. I'm POSTing from a
> TextArea to a CGI script that reads STDIN and writes the result to a
> file. File size is about 5K. Three times out of five the routines
work
> perfectly. Two times out of five STDIN is truncated to exactly 1378
> bytes. My Apache (2.x) error file shows an unspecified [error] each
> time this happens. Nothing I have tried (change of compilers, etc.)
has
> made a difference. Does this ring any bells?

The "unspecified [error]" is most likely your CGI script writing to
stderr. The presence of this line leads me to believe that the problem
is someplace in your cgi script.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server
Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.