Solved

411 Content Length Required

Posted on 2007-11-15
14
2,048 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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
 

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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preface This is the third article about the EE Collaborative Login Project. A Better Website Login System (http://www.experts-exchange.com/A_2902.html) introduces the Login System and shows how to implement a login page. The EE Collaborative Logi…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

762 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