473,385 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

CGI and HTTP headers error

Hello all,

My PHP script produce an intermittent CGI error. The sequence of events is:
1- User load page A to login
2- Submit page A redirect (with the PHP funciton header("Location:
http://www.mydomaine.com/mydir/b.php") to page B.
3- About 20% of the time I got the error:
"The specified CGI application misbehaved by not returning a complete set of
HTTP headers."
4- "Refresh" afterward shows the page without error.

I tried to find a difference between a correctly loaded page B and one that
generate an error and I cannot find one. It realy doesn't seem to be linked
to the sequence of action the user is doing.

Anybody can help about it? Any idea or suggestion?

Thanks.

Yannick
Jul 17 '05 #1
2 1793
Yannick Turgeon wrote:
Hello all,

My PHP script produce an intermittent CGI error. The sequence of events
is: 1- User load page A to login
2- Submit page A redirect (with the PHP funciton header("Location:
http://www.mydomaine.com/mydir/b.php") to page B.
3- About 20% of the time I got the error:
"The specified CGI application misbehaved by not returning a complete set
of HTTP headers."
4- "Refresh" afterward shows the page without error.

I tried to find a difference between a correctly loaded page B and one
that generate an error and I cannot find one. It realy doesn't seem to be
linked to the sequence of action the user is doing.

Anybody can help about it? Any idea or suggestion?

Thanks.

Yannick


Hi,

Are you sure that the script that is named in the action of the form on
pageA stops executing after adding the header("Location.... etc") ??

If not: Maybe it produces sometimes an error in the subsequent code.

Regards,
Erwin Moller
Jul 17 '05 #2
> Are you sure that the script that is named in the action of the form on
pageA stops executing after adding the header("Location.... etc") ??

If not: Maybe it produces sometimes an error in the subsequent code.

Hello Erwin. Thanks for your comments.

My script did run another command before exiting. I've changed it... but the
problem is still there. These intermittent problems are such a pain! I think
we'll live with that bug...

Yannick
Jul 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Peter Gaunt | last post by:
I'm in the process of moving my site from one server to another (my old hosting company appears to have gone bust). On the old host and on my local Mac OS X machine I can send HTTP/1.1 response...
7
by: Michael Foord | last post by:
#!/usr/bin/python -u # 15-09-04 # v1.0.0 # auth_example.py # A simple script manually demonstrating basic authentication. # Copyright Michael Foord # Free to use, modify and relicense. #...
2
by: Mak | last post by:
Hi Everybody, I try set the Expect: 100-continue in my request to server. The way I do it is by setting : <META http-equiv="Expect" content="100-continue"> in my html page. But, it does not...
6
by: Sam | last post by:
I have some issues with HTTP Headers and I was hoping for some pointers or references to good articles. Here is the problem. I have 6 .aspx pages, each page contains a common .ascx. This ascx...
8
by: Andreas Klemt | last post by:
Hello, I get this error Message "cannot redirect after http headers have been sent" when I do this response.redirect ("home.aspx") How can I find out with vb.net if already a http header has...
5
by: gibble | last post by:
Hi, I am going crazy. We get a hundred or so of these errors each day and while the fix would seem obvious, the error does not include a line number! -------------------- Process...
0
by: allavarapu | last post by:
Hi, I am writing http protocol to get some data from servers. If i was using my localhost, getting replay from local and if want access other remote sites, i am getting error. Please reply it...
2
by: welcomestocontact | last post by:
Hi, I am writing http protocol to get some data from servers. If i was using my localhost, getting replay from local and if want access other remote sites, i am getting error. Please reply it ...
1
by: Max58kl | last post by:
Hi I am trying to setup a form that automatically sends the form values via email to a specific address. I have uploaded the script, which when I run loads a page with the following error...
2
by: silk.odyssey | last post by:
I am getting the following error trying to download an html page using urllib2. urllib2.HTTPError: HTTP Error 204: NoContent The url is of this type: ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.