473,396 Members | 1,998 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,396 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 3565
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.