411 Content Length Required

I have a site where I have 2 different forms.  Each form opens in a new window and then posts back to the original window.  One of these forms works perfectly and the other one returns a 'Length Required' error in Internet Explorer 7 (on WinXP Pro SP2).

I do not receive this error with other browsers.  And of note, I do not receive this error if I turn Norton Internet Security off.

The 2 forms have the exact same headers and both post back to the same page though they call different sub routines.

The form headers are:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <title>Name of the page</title>
    </head>

My concern it that other users may experience this same problem.  Is there a way to work around this error?
cgcmqAsked:
Who is Participating?
 
RouchieConnect With a Mentor Commented:
411 Length Required is a server error and not specifically an IE error.  IE works a lot different than other browsers in the sense that part of its workings stem directly from the operating system (it doesn't function independantly like Firefox etc).  Norton may therefore see its functionality as suspicious, although like you say why some forms work is a total mystery.

The only other idea I can think of is removing any ON ERROR GOTO NEXT statements in the ASP code to see if anything springs up.

Alternatively, having a group of hidden fields in the parent page that are populated from the child page, and then processed (as in the example), is an option.  The only issue there is that the parent page could get messy.

Problems like this one just highlight how odd internet technologies actually are.  Maybe in 100 years our great grandchildren might have much less hassle doing this, when Internet Explorer 92 works perfectly.
0
 
RouchieCommented:
Are both the forms on the same domain name?  A security vulnerability emerged a few year's back called cross-site scripting where data could be stolen.  Now most security software packages won't allow any such behaviour that could relate to this.
0
 
cgcmqAuthor Commented:
Yes, everything is all on the same domain.  I have added a third form and it too is experiencing the same problem.
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
RouchieCommented:
>>Yes, everything is all on the same domain.
Does that include sub-domains?

>> I have added a third form and it too is experiencing the same problem.
It definitely sounds like the issue is caused by Norton.  Try and remove each form field in turn, and submit the form, to see which field is causing the problem.  
0
 
cgcmqAuthor Commented:
If I change the action on the form so that it submits to a new page, in lieu of back to the page where the link that opened the form resides, and then submit the form I do not receive an error.  

ie. AdminPage.asp has link to form EditCourse.asp (which opens in a new window)
        EditCourse.asp submits back to AdminPage.asp is returning the error.
but
AdminPage.asp has link to form EditCourse.asp (which opens in a new window)
        EditCourse.asp submits to TestReceiveForm.asp is NOT returning an error.  
0
 
RouchieCommented:
I've looked online at other sites where this error has been reported.  It seems the error comes from code that has not formed the POST request correctly.  Does the error appear in the parent or child window?
0
 
cgcmqAuthor Commented:
Sorry for the delay.  I posted a comment but I did not notice that it returned 'No question specified'.  Here it is again:

The error occurs in the parent window (AdminPage.asp).
0
 
RouchieCommented:
You say that 1 form works and the other doesn't.  What information is different in the broken form?  i.e. text areas being used??
0
 
cgcmqAuthor Commented:
The 2 forms contain different form elements and when they post back to AdminLanding.asp they call different sub routines otherwsie they are pretty similar.
0
 
RouchieCommented:
It does sound like Norton is the culprit, although I'm not sure why it wouldn't prevent ALL form posts.  What are the form action/method attributes in the child windows?  i.e.
<form method="???" action="???" ...>
0
 
cgcmqAuthor Commented:
I have to admit, I also do not understand why, if it where Norton, that it would not effect both forms.  Both forms have the same form attributes:
<form method='post' action='AdminLandingPage.asp' target='AdminPage'>

The forms both contain a hidden field that determines which sub routine is called:
    <input type='hidden' name='ShowStudent' value='UpdateCourseRecord' /> is the form that does not work while
   <input type='hidden' name='ShowStudent' value='UpdateStudentRecord' />
does work.
0
 
RouchieCommented:
In Javascript I believe you have to post back to the parent using an object called 'opener', rather than specifying a target manually.  The child window detects the parent window by going back up the hierarchy.

This might help explain this a little more:
http://www.plus2net.com/javascript_tutorial/window-child3.php
http://www.webdeveloper.com/forum/showthread.php?t=54961

0
 
cgcmqAuthor Commented:
I don't think that will work for me.  In the references you quote the idea is to return the value to the parent window without reloading it.  I am passing the values from the form to an ASP page that must then do something with it.  For this reason I actually want to parent window to reload.

This is working fine in browsers other than IE (is anyone surprised by that?).  And one of the two forms even works in IE.  I was hoping that the error that IE is returning (Length Required) might have been a clue as why one of the forms is not working.

Perhaps not and it is related to Norton as opposed to IE.  Doesn't explain why one form works and the other doesn't though.

We may have exhausted our options.  I will leave this open for a day and if there are no other comments I am happy to award you the points in recognition of your efforts.
0
 
cgcmqAuthor Commented:
We were never able to determine a full solution to the error.  This may be one of those cases where there is no solution. It could be a combination of OS, browser, firewall & anti-virus all conspiring to cause the problem.  Rouchie worked diligently on this and was a great help in me better understanding the root issue.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.