473,226 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,226 software developers and data experts.

HTTP/1.1 400 when GET request length is over 260 bytes

Hi!

I get HTTP/1.1 400 Bad Request when I try to access a aspx-page running on
server 2003 SP1 from internet explorer 6 running on the same machine.

Here is the URL I am using:

http://www.myserver.com/20th-Century-Design/1900-talsdesign/Interior-design/Mid-century-modern/midcentury/Mid-century-design/midcentury-modern/Modern-Design/Modernism/Vintage-design/Img/508_1_632651758409835000/Arm-chair-Barbera-d'Argento-Designed-by-Paolo-Pallucco-for-Pallucco-Italia.aspx

If I reduce the length of the URL below 260 bytes, then I get a page missing
error (which is good, since it indicates that it passes through whatever
check is preventing it from working)

I get the impression that the aspx-engine never kicks in and that the 400
response is generated from within IIS. As far as I know an URL should be
able to be over 2k bytes.
I know that the URLScan utility (which is not installed) has a limitation on
the URL on 260 bytes...

the URL has been URL-Encoded (Server.URLEncode) so no invalid characters
should be in the URL. (I get the same error if I remove the '-character)

/Håkan
Oct 17 '06 #1
6 3557
long url's usually have long arguments. you are probably hitting limits on
the max length of a directory name or filename (255).

-- bruce (sqlwork.com)

"Håkan" <no***@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP04.phx.gbl...
Hi!

I get HTTP/1.1 400 Bad Request when I try to access a aspx-page running on
server 2003 SP1 from internet explorer 6 running on the same machine.

Here is the URL I am using:

http://www.myserver.com/20th-Century-Design/1900-talsdesign/Interior-design/Mid-century-modern/midcentury/Mid-century-design/midcentury-modern/Modern-Design/Modernism/Vintage-design/Img/508_1_632651758409835000/Arm-chair-Barbera-d'Argento-Designed-by-Paolo-Pallucco-for-Pallucco-Italia.aspx

If I reduce the length of the URL below 260 bytes, then I get a page
missing error (which is good, since it indicates that it passes through
whatever check is preventing it from working)

I get the impression that the aspx-engine never kicks in and that the 400
response is generated from within IIS. As far as I know an URL should be
able to be over 2k bytes.
I know that the URLScan utility (which is not installed) has a limitation
on the URL on 260 bytes...

the URL has been URL-Encoded (Server.URLEncode) so no invalid characters
should be in the URL. (I get the same error if I remove the '-character)

/Håkan

Oct 17 '06 #2
It is not a real path on the disk. I am using Context.RewritePath(), so the
path has nothing to do with the physical layout of the disk. The file
requested does not even exist as a physical file on the file system, and it
works fine as long as the request does not go over 260 bytes

/H

"bruce barker (sqlwork.com)" <b_*************************@sqlwork.comwrote
in message news:eR**************@TK2MSFTNGP05.phx.gbl...
long url's usually have long arguments. you are probably hitting limits on
the max length of a directory name or filename (255).

-- bruce (sqlwork.com)

"Håkan" <no***@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP04.phx.gbl...
>Hi!

I get HTTP/1.1 400 Bad Request when I try to access a aspx-page running
on server 2003 SP1 from internet explorer 6 running on the same machine.

Here is the URL I am using:

http://www.myserver.com/20th-Century-Design/1900-talsdesign/Interior-design/Mid-century-modern/midcentury/Mid-century-design/midcentury-modern/Modern-Design/Modernism/Vintage-design/Img/508_1_632651758409835000/Arm-chair-Barbera-d'Argento-Designed-by-Paolo-Pallucco-for-Pallucco-Italia.aspx

If I reduce the length of the URL below 260 bytes, then I get a page
missing error (which is good, since it indicates that it passes through
whatever check is preventing it from working)

I get the impression that the aspx-engine never kicks in and that the 400
response is generated from within IIS. As far as I know an URL should be
able to be over 2k bytes.
I know that the URLScan utility (which is not installed) has a limitation
on the URL on 260 bytes...

the URL has been URL-Encoded (Server.URLEncode) so no invalid characters
should be in the URL. (I get the same error if I remove the '-character)

/Håkan


Oct 17 '06 #3
Check the metabase values for these settings:
AspMaxRequestEntityAllowed
MaxRequestEntityAllowed

And also check the registry key
HKLM/CurrentControlSet/Services/HTTP/Parameters
for these values:

MaxRequestBytes
UrlSegmentMaxLength
UrlSegmentMaxCount
MaxFieldLength

Mark

"Håkan" <no***@nowhere.comwrote in message
news:er*************@TK2MSFTNGP05.phx.gbl:
It is not a real path on the disk. I am using Context.RewritePath(), so
the
path has nothing to do with the physical layout of the disk. The file
requested does not even exist as a physical file on the file system, and
it
works fine as long as the request does not go over 260 bytes

/H

"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com>
wrote
in message news:eR**************@TK2MSFTNGP05.phx.gbl...
long url's usually have long arguments. you are probably hitting
limits on
the max length of a directory name or filename (255).

-- bruce (sqlwork.com)

"Håkan" <no***@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP04.phx.gbl...
Hi!

I get HTTP/1.1 400 Bad Request when I try to access a aspx-page
running
on server 2003 SP1 from internet explorer 6 running on the same
machine.
>
Here is the URL I am using:

http://www.myserver.com/20th-Century...n/Interior-des
ign/Mid-century-modern/midcentury/Mid-century-design/midcentury-modern/M
odern-Design/Modernism/Vintage-design/Img/508_1_632651758409835000/Arm-c
hair-Barbera-d'Argento-Designed-by-Paolo-Pallucco-for-Pallucco-Italia.as
px
>
If I reduce the length of the URL below 260 bytes, then I get a page
missing error (which is good, since it indicates that it passes
through
whatever check is preventing it from working)

I get the impression that the aspx-engine never kicks in and that the
400
response is generated from within IIS. As far as I know an URL should
be
able to be over 2k bytes.
I know that the URLScan utility (which is not installed) has a
limitation
on the URL on 260 bytes...

the URL has been URL-Encoded (Server.URLEncode) so no invalid
characters
should be in the URL. (I get the same error if I remove the
'-character)
>
/Håkan
Oct 17 '06 #4
Here are the values:

METABASE
AspMaxRequestEntityAllowed="204800"
MaxRequestEntityAllowed [Does not exist in the metabase]

REGISTRY
None of these parameters exist under the key:
HKLM/System/CurrentControlSet/Services/HTTP/Parameters

MaxRequestBytes
UrlSegmentMaxLength
UrlSegmentMaxCount
MaxFieldLength
Nothing of this seams to limit the URL to 260 bytes...

/H

"M. Burnett" <mb@xato.netwrote in message
news:Oh**************@TK2MSFTNGP02.phx.gbl...
Check the metabase values for these settings:
AspMaxRequestEntityAllowed
MaxRequestEntityAllowed

And also check the registry key
HKLM/CurrentControlSet/Services/HTTP/Parameters
for these values:

MaxRequestBytes
UrlSegmentMaxLength
UrlSegmentMaxCount
MaxFieldLength

Mark

"Håkan" <no***@nowhere.comwrote in message
news:er*************@TK2MSFTNGP05.phx.gbl:
>It is not a real path on the disk. I am using Context.RewritePath(), so
the
path has nothing to do with the physical layout of the disk. The file
requested does not even exist as a physical file on the file system, and
it
works fine as long as the request does not go over 260 bytes

/H

"bruce barker (sqlwork.com)" <b_*************************@sqlwork.com>
wrote
in message news:eR**************@TK2MSFTNGP05.phx.gbl...
long url's usually have long arguments. you are probably hitting
limits on
the max length of a directory name or filename (255).

-- bruce (sqlwork.com)

"Håkan" <no***@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP04.phx.gbl...
>Hi!

I get HTTP/1.1 400 Bad Request when I try to access a aspx-page
running
>on server 2003 SP1 from internet explorer 6 running on the same
machine.
>>
Here is the URL I am using:

http://www.myserver.com/20th-Century...n/Interior-des
ign/Mid-century-modern/midcentury/Mid-century-design/midcentury-modern/M
odern-Design/Modernism/Vintage-design/Img/508_1_632651758409835000/Arm-c
hair-Barbera-d'Argento-Designed-by-Paolo-Pallucco-for-Pallucco-Italia.as
px
>>
If I reduce the length of the URL below 260 bytes, then I get a page
missing error (which is good, since it indicates that it passes
through
>whatever check is preventing it from working)

I get the impression that the aspx-engine never kicks in and that the
400
>response is generated from within IIS. As far as I know an URL should
be
>able to be over 2k bytes.
I know that the URLScan utility (which is not installed) has a
limitation
>on the URL on 260 bytes...

the URL has been URL-Encoded (Server.URLEncode) so no invalid
characters
>should be in the URL. (I get the same error if I remove the
'-character)
>>
/Håkan

>

Oct 17 '06 #5
There are various API's that have hard-coded path limits of 260 bytes.
It might just be that IIS is limiting the path based on the buffer
allocated for those API calls. It might just be easier to shorten your
paths.
Mark


"Håkan" <no***@nowhere.comwrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl:
Here are the values:

METABASE
AspMaxRequestEntityAllowed="204800"
MaxRequestEntityAllowed [Does not exist in the metabase]

REGISTRY
None of these parameters exist under the key:
HKLM/System/CurrentControlSet/Services/HTTP/Parameters

MaxRequestBytes
UrlSegmentMaxLength
UrlSegmentMaxCount
MaxFieldLength
Nothing of this seams to limit the URL to 260 bytes...

/H

"M. Burnett" <mb@xato.netwrote in message
news:Oh**************@TK2MSFTNGP02.phx.gbl...
Check the metabase values for these settings:
AspMaxRequestEntityAllowed
MaxRequestEntityAllowed

And also check the registry key
HKLM/CurrentControlSet/Services/HTTP/Parameters
for these values:

MaxRequestBytes
UrlSegmentMaxLength
UrlSegmentMaxCount
MaxFieldLength

Mark

"Håkan" <no***@nowhere.comwrote in message
news:er*************@TK2MSFTNGP05.phx.gbl:
It is not a real path on the disk. I am using Context.RewritePath(),
so
the
path has nothing to do with the physical layout of the disk. The
file
requested does not even exist as a physical file on the file system,
and
it
works fine as long as the request does not go over 260 bytes

/H

"bruce barker (sqlwork.com)"
<b_*************************@sqlwork.com>
wrote
in message news:eR**************@TK2MSFTNGP05.phx.gbl...
long url's usually have long arguments. you are probably hitting
limits on
the max length of a directory name or filename (255).

-- bruce (sqlwork.com)

"Håkan" <no***@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP04.phx.gbl...
Hi!

I get HTTP/1.1 400 Bad Request when I try to access a aspx-page
running
on server 2003 SP1 from internet explorer 6 running on the same
machine.
>
Here is the URL I am using:

>
http://www.myserver.com/20th-Century...n/Interior-des
>
ign/Mid-century-modern/midcentury/Mid-century-design/midcentury-modern/M
>
odern-Design/Modernism/Vintage-design/Img/508_1_632651758409835000/Arm-c
>
hair-Barbera-d'Argento-Designed-by-Paolo-Pallucco-for-Pallucco-Italia.as
px
>
If I reduce the length of the URL below 260 bytes, then I get a
page
missing error (which is good, since it indicates that it passes
through
whatever check is preventing it from working)

I get the impression that the aspx-engine never kicks in and that
the
400
response is generated from within IIS. As far as I know an URL
should
be
able to be over 2k bytes.
I know that the URLScan utility (which is not installed) has a
limitation
on the URL on 260 bytes...

the URL has been URL-Encoded (Server.URLEncode) so no invalid
characters
should be in the URL. (I get the same error if I remove the
'-character)
>
/Håkan


Oct 17 '06 #6
Hello All,

This is not an IIS limitation. It is an ASP.NET limitation (and ASPI.NET, I
believe, inherits it from the CLR.) Unfortunately, it is hard coded.

Thank you,
-Wade A. Hilmo,
-Microsoft

"M. Burnett" <mb@xato.netwrote in message
news:uc**************@TK2MSFTNGP03.phx.gbl...
There are various API's that have hard-coded path limits of 260 bytes.
It might just be that IIS is limiting the path based on the buffer
allocated for those API calls. It might just be easier to shorten your
paths.
Mark


"Håkan" <no***@nowhere.comwrote in message
news:ul**************@TK2MSFTNGP04.phx.gbl:
Here are the values:

METABASE
AspMaxRequestEntityAllowed="204800"
MaxRequestEntityAllowed [Does not exist in the metabase]

REGISTRY
None of these parameters exist under the key:
HKLM/System/CurrentControlSet/Services/HTTP/Parameters

MaxRequestBytes
UrlSegmentMaxLength
UrlSegmentMaxCount
MaxFieldLength
Nothing of this seams to limit the URL to 260 bytes...

/H

"M. Burnett" <mb@xato.netwrote in message
news:Oh**************@TK2MSFTNGP02.phx.gbl...
Check the metabase values for these settings:
AspMaxRequestEntityAllowed
MaxRequestEntityAllowed
>
And also check the registry key
HKLM/CurrentControlSet/Services/HTTP/Parameters
for these values:
>
MaxRequestBytes
UrlSegmentMaxLength
UrlSegmentMaxCount
MaxFieldLength
>
>
>
Mark
>
>
>
>
>
"Håkan" <no***@nowhere.comwrote in message
news:er*************@TK2MSFTNGP05.phx.gbl:
>
>It is not a real path on the disk. I am using Context.RewritePath(),
so
>the
>path has nothing to do with the physical layout of the disk. The
file
>requested does not even exist as a physical file on the file system,
and
>it
>works fine as long as the request does not go over 260 bytes
>>
>/H
>>
>"bruce barker (sqlwork.com)"
<b_*************************@sqlwork.com>
>wrote
>in message news:eR**************@TK2MSFTNGP05.phx.gbl...
>>
long url's usually have long arguments. you are probably hitting
>limits on
the max length of a directory name or filename (255).
>
-- bruce (sqlwork.com)
>
>
>
"Håkan" <no***@nowhere.comwrote in message
news:u7**************@TK2MSFTNGP04.phx.gbl...
>>
>Hi!
>>
>I get HTTP/1.1 400 Bad Request when I try to access a aspx-page
>running
>on server 2003 SP1 from internet explorer 6 running on the same
>machine.
>>
>Here is the URL I am using:
>>
>>
>>
http://www.myserver.com/20th-Century...n/Interior-des
>>
ign/Mid-century-modern/midcentury/Mid-century-design/midcentury-modern/M
>>
odern-Design/Modernism/Vintage-design/Img/508_1_632651758409835000/Arm-c
>>
hair-Barbera-d'Argento-Designed-by-Paolo-Pallucco-for-Pallucco-Italia.as
>px
>>
>If I reduce the length of the URL below 260 bytes, then I get a
page
>missing error (which is good, since it indicates that it passes
>through
>whatever check is preventing it from working)
>>
>I get the impression that the aspx-engine never kicks in and that
the
>400
>response is generated from within IIS. As far as I know an URL
should
>be
>able to be over 2k bytes.
>I know that the URLScan utility (which is not installed) has a
>limitation
>on the URL on 260 bytes...
>>
>the URL has been URL-Encoded (Server.URLEncode) so no invalid
>characters
>should be in the URL. (I get the same error if I remove the
>'-character)
>>
>/Håkan
>>
>
>>
>
>

Oct 18 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: turnit \(removethis\) | last post by:
I have a login form that uses the post method to carry the information to the next page. The form works just fine in ie6.0, but fails in mozilla and fails in ie5.2 on a mac. "HTTP/1.1 400 Bad...
1
by: PerryG | last post by:
We have a .NET 1.1 client which is sending a gzipped soap request using HttpWebRequest to an Apache server. The Apache server is using a the 'mod_deflate' server to decompress the incoming...
3
by: Paul M | last post by:
Hi Sorry if this is posted in the wrong group but I'm brand new to this area. Basically I've got to post some XML documents to an external server using HTTP web request (POST, not GET) and be able...
3
by: Stig-Arne Basberg | last post by:
I am working on a project where I want to send at file from a Win CE device to a receiving PC using the HTTP protocol. For testing purpose I made a simple test app on my PC (code below). The...
2
by: Kai Huener | last post by:
Hello All, I want to send a HttpRequest to a program running on http://localhost:8080 on my computer. I want to communicate with this programm by sending an XML-Message and the Response will be...
4
by: Maximus | last post by:
Hi everyone, I was wondering if anybody could help me with sending xml as part of an http post. Any help will be greatly appreciated. Thanks.
0
by: phplasma | last post by:
Hey, I am currently attempting to implement a multi-threaded C# socket, using SSL (.pem file/certification/private key combo) server using Visual Studio C# Express. I have successfully made...
3
by: Eric | last post by:
I'm trying to test code to post xml to a web page in anticipation of a new project. I wanted to try a simple test first, but I get a (405) Method Not Allowed error no matter what I try. I have...
0
by: shlim | last post by:
Currently I'm using VB.Net to perform a http/https multipart form post to a servlet. I'm able to perform the post using HttpWebrequest via GetRequestStream(). However, the servlet returned me with...
0
by: veera ravala | last post by:
ServiceNow is a powerful cloud-based platform that offers a wide range of services to help organizations manage their workflows, operations, and IT services more efficiently. At its core, ServiceNow...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
0
by: jianzs | last post by:
Introduction Cloud-native applications are conventionally identified as those designed and nurtured on cloud infrastructure. Such applications, rooted in cloud technologies, skillfully benefit from...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
by: jimatqsi | last post by:
The boss wants the word "CONFIDENTIAL" overlaying certain reports. He wants it large, slanted across the page, on every page, very light gray, outlined letters, not block letters. I thought Word Art...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.