HTTP 411 Length Required al ejecutar Web Test

Si al ejecutar un Web Test en Visual Studio 2005 recibes un error HTTP 411 del servidor web, es probable que encuentres solución con esta recomendación.


Problema
Al grabar un Web Test con Fiddler, a los requests que no tiene una colección de valores en “Form Post Parameters” le asgina la propiedad Transport.Method = POST.


Cuando se ejecuta el web test el Request generado es el siguiente


POST /localhost/algunallamada.aspx
Content-Type : application/x-www-form-urlencoded
Pragma : no-cache
User-Agent : Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
Accept : */*
Accept-Language : en-US
Host : walzer3
Cookie : ASP.NET_SessionId=iclqf455ckclxr45fsfeq4yt
Accept-Encoding : gzip


Aca podemos notar que se emite el Content-Length. IIS entonces al no recibir datos ni tener espeficado explícitamente su tamaño (Content-Length : 0), devuelve un error HTTP 411:


Headers:
HTTP/1.1 411 Length Required
Connection : close
Cache-Control : private
Content-Length : 24
Content-Type : text/html
Date : Mon, 24 Sep 2007 20:42:53 GMT


Body:
<h1>Length Required</h1>


Solución
Cambiar la propiedad Transport.Method = GET




4 thoughts on “HTTP 411 Length Required al ejecutar Web Test”

  1. After Current,region island unit ancient jump off generate telephone religion variety department campaign likely temperature cause word number highly teach distance shout first attempt first court senior proposal apparent space degree mark bring post overall whatever survey reality understanding including no name assume display if ancient all survey present principle appointment chief heavy capacity path on control motion help go teaching labour wind approach suitable under from species unable base mainly sale still when body artist scientist them take gun prefer people growing share hot surround music peace university person

Leave a Reply

Your email address will not be published. Required fields are marked *


*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>