Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 26th, 2009, 04:26 PM
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Querystring value is empty

I have a VB client app and a classic ASP page.

The app sends a very long string in the query string to the asp page.

[code]http://www.xyz.com/clientresp.asp?clp=sfhsdahfaffasfasafasfffasffafas fsf....[code]

When I read the query string value like in asp:

strVal = request("clp")

response.write(strVal)

I get nothing. I even tried writing the strVal to a text file with no success. I am positive my query string value is too long. There was a registry hack to make the IIS accept longer query string values. Any help is appreciated.

Thanks

Last edited by pie8er; July 26th, 2009 at 04:29 PM..
 
Old July 26th, 2009, 07:17 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

How long is 'very long'? I am intrigued to know if there is a max length

Are other querystrings working? Have you trimmed the length to see if length is your problem? I would do this. If I found length was my problem I would pass the value another way

I have never known what is considered to long. If there is a suggested maximum length I would abide by it.
__________________
Wind is your friend
Matt
 
Old July 26th, 2009, 10:13 PM
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

IIRC, when the query string size was above 2kb, I started to get empty values. I had to do a registry hack to increment the size. I moved the asp page to a brand new windows 2003 server recently and I ran into the problem like I did with the old server. I forgot what I did for the old server. I know I could use POST.
 
Old July 26th, 2009, 11:01 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

2kb cant imagine how you even get this measure. I would expect to hear about charcter length when talking about QS size. Sounds like you need to use a more suitable method of passing values.

If you must try to make it work you would need to edit a property in the metabase.mxl file on a 2003 server
__________________
Wind is your friend
Matt
 
Old July 26th, 2009, 11:13 PM
Registered User
 
Join Date: Jul 2009
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks.

I need to expand the size limit using the AspMaxRequestEntityAllowed metabase property.

http://www.microsoft.com/technet/pro....mspx?mfr=true
 
Old July 26th, 2009, 11:28 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Im still intrigued to know the charcter limit where it becomes unhappy? I cant see me ever reaching it but it would be interesting to know, not to mention good for other users in the Wrox knowledge base
__________________
Wind is your friend
Matt
 
Old July 27th, 2009, 01:39 PM
Friend of Wrox
 
Join Date: Jun 2008
Posts: 1,649
Thanks: 3
Thanked 141 Times in 140 Posts
Default

It is a *BROWSER* limitation, typically. And though modern browsers seem to allow 1KB or more, you should NEVER count on more than 512 characters. And, remember, that is the *encrypted* length. (That is, a space encoded as %20 counts as 3 characters.)

But if you have one page that is directly hitting some web server, where no browser is involved, it shouldn't matter much. Still, it would have been better to use POST data instead of GET data (a querystring is GET data).





Similar Threads
Thread Thread Starter Forum Replies Last Post
using querystring melkin Classic ASP Basics 7 April 1st, 2008 09:07 AM
Querystring or not? myself Classic ASP Basics 4 July 4th, 2006 09:01 AM
QueryString Problem mims1979 Beginning PHP 3 January 10th, 2005 08:06 PM
querystring in xslt Mack XSLT 1 January 16th, 2004 11:45 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.