Solved

411 Content Length Required

Posted on 2007-11-15
14
2,042 Views
Last Modified: 2013-11-19
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?
0
Comment
Question by:cgcmq
  • 7
  • 7
14 Comments
 
LVL 25

Expert Comment

by:Rouchie
ID: 20297273
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
 

Author Comment

by:cgcmq
ID: 20297285
Yes, everything is all on the same domain.  I have added a third form and it too is experiencing the same problem.
0
 
LVL 25

Expert Comment

by:Rouchie
ID: 20297308
>>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
 

Author Comment

by:cgcmq
ID: 20297348
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
 
LVL 25

Expert Comment

by:Rouchie
ID: 20297415
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
 

Author Comment

by:cgcmq
ID: 20297518
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
 
LVL 25

Expert Comment

by:Rouchie
ID: 20298520
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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:cgcmq
ID: 20298665
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
 
LVL 25

Expert Comment

by:Rouchie
ID: 20298736
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
 

Author Comment

by:cgcmq
ID: 20298787
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
 
LVL 25

Expert Comment

by:Rouchie
ID: 20298970
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
 

Author Comment

by:cgcmq
ID: 20299135
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
 
LVL 25

Accepted Solution

by:
Rouchie earned 500 total points
ID: 20299206
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
 

Author Closing Comment

by:cgcmq
ID: 31409443
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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now