Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

request.querystring length max

0 views
Skip to first unread message

dal...@gmail.com

unread,
Nov 20, 2006, 1:52:07 AM11/20/06
to
Hello,

I want to load an asp page with a very great variable part (something
like save.asp?myvariable=aa...zzzzz
I know the length of aa...zzzzz is limited to 255 characters. But I
would like to be able to send a request of length, let say of 2500
characters.

Can someone help me ?

Thanks

Evertjan.

unread,
Nov 20, 2006, 3:27:38 AM11/20/06
to
dal...@gmail.com wrote on 20 nov 2006 in
microsoft.public.inetserver.asp.general:

> I want to load an asp page with a very great variable part (something
> like save.asp?myvariable=aa...zzzzz
> I know the length of aa...zzzzz is limited to 255 characters. But I
> would like to be able to send a request of length, let say of 2500
> characters.
>

Use

<form method='post'><input name ='myvariable'>...

and

request.form("myvariable")

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)

dal...@gmail.com

unread,
Nov 20, 2006, 9:43:40 AM11/20/06
to
The problem is that my page is sent by a javascript :
location.replace("save.asp?myvariable=aaaaaaa....zzzz")

Any idea for this situation ?

Thanks a lot

Luc

(
Evertjan. a écrit :

Tim Slattery

unread,
Nov 20, 2006, 12:19:24 PM11/20/06
to
"dal...@gmail.com" <dal...@gmail.com> wrote:

>The problem is that my page is sent by a javascript :
>location.replace("save.asp?myvariable=aaaaaaa....zzzz")
>
>Any idea for this situation ?

Make a hidden form in your page:

<form id="myform" action="save.asp" method="post">
<input type="hidden" id="myvariable">
</form>

Now, instead of the "location.replace" line you quoted above, use
these lines:

document.getElementById("myvariable").value="aaaaaaa.....zzzz";
document.getElementById("myform").submit();

--
Tim Slattery
MS MVP(DTS)
Slatt...@bls.gov

Evertjan.

unread,
Nov 20, 2006, 12:38:02 PM11/20/06
to
Tim Slattery wrote on 20 nov 2006 in
microsoft.public.inetserver.asp.general:

> "dal...@gmail.com" <dal...@gmail.com> wrote:


>
>>The problem is that my page is sent by a javascript :
>>location.replace("save.asp?myvariable=aaaaaaa....zzzz")
>>
>>Any idea for this situation ?
>
> Make a hidden form in your page:
>
> <form id="myform" action="save.asp" method="post">
> <input type="hidden" id="myvariable">

<input type="hidden" id="myvariable" name="myvariable">

> </form>
>
> Now, instead of the "location.replace" line you quoted above, use
> these lines:
>
> document.getElementById("myvariable").value="aaaaaaa.....zzzz";
> document.getElementById("myform").submit();
>

--

Tim Slattery

unread,
Nov 20, 2006, 3:51:34 PM11/20/06
to
"Evertjan." <exjxw.ha...@interxnl.net> wrote:

>Tim Slattery wrote on 20 nov 2006 in
>microsoft.public.inetserver.asp.general:
>
>> "dal...@gmail.com" <dal...@gmail.com> wrote:
>>
>>>The problem is that my page is sent by a javascript :
>>>location.replace("save.asp?myvariable=aaaaaaa....zzzz")
>>>
>>>Any idea for this situation ?
>>
>> Make a hidden form in your page:
>>
>> <form id="myform" action="save.asp" method="post">
>> <input type="hidden" id="myvariable">
>
><input type="hidden" id="myvariable" name="myvariable">

Right, thanks. The id attribute so the script can access it easily,
the name attribute so that it will be submitted.


>
>> </form>
>>
>> Now, instead of the "location.replace" line you quoted above, use
>> these lines:
>>
>> document.getElementById("myvariable").value="aaaaaaa.....zzzz";
>> document.getElementById("myform").submit();
>>

--

0 new messages