473,408 Members | 1,707 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,408 software developers and data experts.

invalid url and proxy

since rewriting our site from asp to asp.net, weve receveid many complaints
from users stating that they get invalid urls, and cant access certain pages
of our site

nothing has changed in our configuration except site being written in
asp.net (from classic asp). the site is behind a Linux box with Squid 2.5

is there known issues between proxies and asp.net output..maybe with
viewstate? underscores in url?

ex:
Hi! Since you upgraded and gave the mls.ca site a new look (it's absolutely
beautiful, by the way), I cannot get a search to work. I tried advance
search to search only the city of Mission, British Columbia, and it won't
display any results. It gives me an error screen that I have copied below.
Why is this happening? Is it only happening to me? I haven't had any
problems in the past at all. Any ideas? I'm really missing mls.ca.

Thanks for your help!

This is the screen copy:

ERROR
The requested URL could not be retrieved

----------------------------------------------------------------------------
----

While trying to process the request:

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint,
application/x-shockwave-flash, */*
Referer: http://www.mls.ca/PropertySearch.aspx
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.1.4322)
Host: www.mls.ca
Content-Length: 666
Connection: Keep-Alive
Cache-Control: no-cache

__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=dDwtND M3MzA4NDMyOzs%2B&xrootHead
er%3ASideNav%3A0%3AtxtKeywords=Community&xrootHead er%3ASideNav%3A1%3Amlsnmbr
=MLS%C2%AE&_ctl0%3AelProvinces%3A_ctl0=3&_ctl0%3At xtCity=Mission&_ctl0%3Atxt
Street=&_ctl0%3AtxtPostalCode=&_ctl0%3AhAreaID=&se l1=1&sel2=20&_ctl0%3AelMin
Price%3A_ctl0=300000&_ctl0%3AelMaxPrice%3A_ctl0=35 0000&_ctl0%3AelMinRent%3A_
ctl0=-1&_ctl0%3AelMaxRent%3A_ctl0=0&_ctl0%3AelBeds%3A_ct l0=3-0&_ctl0%3AddlFe
atureType=all&_ctl0%3AelBaths%3A_ctl0=2-0&_ctl0%3AtxtRealtorName=&_ctl0%3Atx
tBrokerCompany=&_ctl0%3AddlOrder=A&_ctl0%3AddlOrde rField=1&_ctl0%3AddlPageSi
ze=10&_ctl0%3A_ctl1%3AtxtNewName=&_ctl0%3AbtnSearc h=Search

The following error was encountered:

a.. Invalid Request
Some aspect of the HTTP Request is invalid. Possible problems:

a.. Missing or unknown request method
b.. Missing URL
c.. Missing HTTP Identifier (HTTP/1.0)
d.. Request is too large
e.. Content-Length missing for POST or PUT requests
f.. Illegal character in hostname; underscores are not allowed
Your cache administrator is we*******@mls.ca.

----------------------------------------------------------------------------
----
Generated Fri, 13 Feb 2004 17:07:29 GMT by www.mls.ca (Squid/2.4.STABLE6
Nov 18 '05 #1
6 6478
unfortunately asp.net is not w3c compliant in naming controls, and will
generate invalid names. a control name can not legally start with an "_"
(underscore), but asp.net uses this convention a lot. your proxy server is
validating the post data (and rejecting invalid posts - generally a good
idea). you might be able to turn this off.

-- bruce (sqlwork.com)


"sviau" <sv***@crea.ca> wrote in message
news:#$**************@TK2MSFTNGP12.phx.gbl...
since rewriting our site from asp to asp.net, weve receveid many complaints from users stating that they get invalid urls, and cant access certain pages of our site

nothing has changed in our configuration except site being written in
asp.net (from classic asp). the site is behind a Linux box with Squid 2.5

is there known issues between proxies and asp.net output..maybe with
viewstate? underscores in url?

ex:
Hi! Since you upgraded and gave the mls.ca site a new look (it's absolutely beautiful, by the way), I cannot get a search to work. I tried advance
search to search only the city of Mission, British Columbia, and it won't
display any results. It gives me an error screen that I have copied below.
Why is this happening? Is it only happening to me? I haven't had any
problems in the past at all. Any ideas? I'm really missing mls.ca.

Thanks for your help!

This is the screen copy:

ERROR
The requested URL could not be retrieved

-------------------------------------------------------------------------- -- ----

While trying to process the request:

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/msword, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/x-shockwave-flash, */*
Referer: http://www.mls.ca/PropertySearch.aspx
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.1.4322)
Host: www.mls.ca
Content-Length: 666
Connection: Keep-Alive
Cache-Control: no-cache

__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=dDwtND M3MzA4NDMyOzs%2B&xrootHead er%3ASideNav%3A0%3AtxtKeywords=Community&xrootHead er%3ASideNav%3A1%3Amlsnmbr =MLS%C2%AE&_ctl0%3AelProvinces%3A_ctl0=3&_ctl0%3At xtCity=Mission&_ctl0%3Atxt Street=&_ctl0%3AtxtPostalCode=&_ctl0%3AhAreaID=&se l1=1&sel2=20&_ctl0%3AelMin Price%3A_ctl0=300000&_ctl0%3AelMaxPrice%3A_ctl0=35 0000&_ctl0%3AelMinRent%3A_ ctl0=-1&_ctl0%3AelMaxRent%3A_ctl0=0&_ctl0%3AelBeds%3A_ct l0=3-0&_ctl0%3AddlFe atureType=all&_ctl0%3AelBaths%3A_ctl0=2-0&_ctl0%3AtxtRealtorName=&_ctl0%3Atx tBrokerCompany=&_ctl0%3AddlOrder=A&_ctl0%3AddlOrde rField=1&_ctl0%3AddlPageSi ze=10&_ctl0%3A_ctl1%3AtxtNewName=&_ctl0%3AbtnSearc h=Search

The following error was encountered:

a.. Invalid Request
Some aspect of the HTTP Request is invalid. Possible problems:

a.. Missing or unknown request method
b.. Missing URL
c.. Missing HTTP Identifier (HTTP/1.0)
d.. Request is too large
e.. Content-Length missing for POST or PUT requests
f.. Illegal character in hostname; underscores are not allowed
Your cache administrator is we*******@mls.ca.

-------------------------------------------------------------------------- -- ----
Generated Fri, 13 Feb 2004 17:07:29 GMT by www.mls.ca (Squid/2.4.STABLE6

Nov 18 '05 #2
Hi Bruce,
Thanks for posting in the community!
From your description, you found that some certain ASP.NET web pages's
response contend can't be correctly send back to the client and your IIS
server is behind a linux proxy server. Also, this didn't occur when you're
using the classic
ASP before, yes?
If there is anything I misunderstood, please feel free to let me know.

I've view the other messages and I think bruce barker's suggestion is quite
reasonable and informative, you may have a check on your linux box to see
whether it has prehibit some certain particular characters for HTTP
content. Also, you can try turn off some certain checks on it to see
whether the situation will has any changes. Meanwhile, if you have any
questions or have any new findings, please feel free to post here with us.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx

Nov 18 '05 #3
is there no way to prevent asp.net from using the underscores in naming
conrols? any solution other than asking our users in modifying their
proxies ???

thanks
stephane

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #4
Hello Stephane,

I think what Bruce and Steven suggested is to revise the setting of Linux
box with Squid 2.5 in server side. You don't need to change each client's
settings.

There is no easy way to change the default naming conventions in asp.net.
You can write customized HTTP handler to deal with that in theory. However,
that is a time consuming work.

So I suggest you try the above method first to see if it could resolve the
problem. If the problem still happens, please reply to this thread and we
will follow up here.

Also, I visited www.mls.ca and clicked advanced search. However, it seems
that I can't reproduce the problem here. Could you please paste here
detailed repro steps?

Thanks very much.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 18 '05 #5
im not clear on what settings im supposed to change on the proxy, server
side. Im not clear on how the proxy is altering the response from the
IIS servers?

one thing that i know is the IIS server returns http 1.1 while the squid
proxy downgrades it to http 1.0; would that cause the problem?

While trying to process the request:

Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/msword, application/vnd.ms-excel,
application/vnd.ms-powerpoint, application/x-shockwave-flash, */*
Referer: <Web Address>
Accept-Language: en-us
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.1.4322)
Host: www.mls.ca
Content-Length: 666
Connection: Keep-Alive
Cache-Control: no-cache

__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=dDwtND M3MzA4NDMyOzs%2B&xroot
Header%3ASideNav%3A0%3AtxtKeywords=Community&xroot Header%3ASideNav%3A1%3
Amlsnmbr=MLS%C2%AE&_ctl0%3AelProvinces%3A_ctl0=3&_ ctl0%3AtxtCity=Mission
&_ctl0%3AtxtStreet=&_ctl0%3AtxtPostalCode=&_ctl0%3 AhAreaID=&sel1=1&sel2=
20&_ctl0%3AelMinPrice%3A_ctl0=300000&_ctl0%3AelMax Price%3A_ctl0=350000&_
ctl0%3AelMinRent%3A_ctl0=-1&_ctl0%3AelMaxRent%3A_ctl0=0&_ctl0%3AelBeds%3
A_ctl0=3-0&_ctl0%3AddlFeatureType=all&_ctl0%3AelBaths%3A_ct l0=2-0&_ctl0%
3AtxtRealtorName=&_ctl0%3AtxtBrokerCompany=&_ctl0% 3AddlOrder=A&_ctl0%3Ad
dlOrderField=1&_ctl0%3AddlPageSize=10&_ctl0%3A_ctl 1%3AtxtNewName=&_ctl0%
3AbtnSearch=Search
The following error was encountered:

Invalid Request
Some aspect of the HTTP Request is invalid. Possible problems:

Missing or unknown request method
Missing URL
Missing HTTP Identifier (HTTP/1.0)
Request is too large
Content-Length missing for POST or PUT requests
Illegal character in hostname; underscores are not allowed
Your cache administrator is we*******@mls.ca.
thanks
stephane
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #6
Hello Stephane,

Thanks for your update.

I am not familar with that Linux porxy product and not sure of whether
there is such setting on it. Bruce's first reply mentioned it and I felt it
worths a try.

I just discussed with with our IIS support professionals. We can try
forcing IIS to reponse HTTP 1.0 through one registry:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Servic es\W3SVC\Parameters
\ReplyWithHTTP1.1 REG_DWORD to 0 (zero)

Please refer to "IIS Registry Setting ReplyWithHTTP1.1 May Cause Problems"
http://support.microsoft.com/?id=193419 for more info on it.

Besides, does this problem happen to all of your customers? Or just some of
them? I visited that web site but can't repro the problem. I noticed there
is "Missing HTTP Identifier (HTTP/1.0)" in your error description, could
you let your client use HTTP 1.0 to see if the problem still happens to
them? We can change this setting in IE Tools menu->Internet
Options->Advanced tab.

Best regards,
Yanhong Huang
Microsoft Community Support

Get Secure! ¨C www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.

Nov 18 '05 #7

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

Similar topics

1
by: MarkWH | last post by:
I am writing a simple reverse proxy using .Net. The basic design is to capture all traffic (from all URL's) in an HttpHandler and the respond accordingly. The problem is that I when a URL is...
9
by: MR | last post by:
I get the following Exception "The data at the root level is invalid. Line 1, position 642" whenever I try to deserialize an incoming SOAP message. The incoming message is formed well and its...
6
by: jasn | last post by:
Hello I am getting the following error message when I try and send an XML sting to a web service, I read somewhere that most web services prefer ascii and some throw errors when using unicode so...
0
by: Ron James | last post by:
I'm using C# to write test cases for our http SOAP server. I've generated a proxy class from our wsdl and the positive test cases are simple to write. However I'd also like to write negative test...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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...

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.