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

Published Monday, September 24, 2007 4:05 PM by cwalzer

Comments

# re: HTTP 411 Length Required al ejecutar Web Test

Sunday, March 16, 2008 11:25 PM by zxevil163

HPgcdh Hi from Russia!

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Powered by Community Server (Commercial Edition), by Telligent Systems