Connecting Tech Pros Worldwide Help | Site Map

request.querystring length max

dal.luc@gmail.com
Guest
 
Posts: n/a
#1: Nov 20 '06
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.
Guest
 
Posts: n/a
#2: Nov 20 '06

re: request.querystring length max


dal.luc@gmail.com wrote on 20 nov 2006 in
microsoft.public.inetserver.asp.general:
Quote:
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.luc@gmail.com
Guest
 
Posts: n/a
#3: Nov 20 '06

re: request.querystring length max


The problem is that my page is sent by a javascript :
location.replace("save.asp?myvariable=aaaaaaa....z zzz")

Any idea for this situation ?

Thanks a lot

Luc

(
Evertjan. a écrit :
Quote:
dal.luc@gmail.com wrote on 20 nov 2006 in
microsoft.public.inetserver.asp.general:
>
Quote:
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)
Tim Slattery
Guest
 
Posts: n/a
#4: Nov 20 '06

re: request.querystring length max


"dal.luc@gmail.com" <dal.luc@gmail.comwrote:
Quote:
>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="aaaaa aa.....zzzz";
document.getElementById("myform").submit();

--
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov
Evertjan.
Guest
 
Posts: n/a
#5: Nov 20 '06

re: request.querystring length max


Tim Slattery wrote on 20 nov 2006 in
microsoft.public.inetserver.asp.general:
Quote:
"dal.luc@gmail.com" <dal.luc@gmail.comwrote:
>
Quote:
>>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">
Quote:
</form>
>
Now, instead of the "location.replace" line you quoted above, use
these lines:
>
document.getElementById("myvariable").value="aaaaa aa.....zzzz";
document.getElementById("myform").submit();
>


--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Tim Slattery
Guest
 
Posts: n/a
#6: Nov 20 '06

re: request.querystring length max


"Evertjan." <exjxw.hannivoort@interxnl.netwrote:
Quote:
>Tim Slattery wrote on 20 nov 2006 in
>microsoft.public.inetserver.asp.general:
>
Quote:
>"dal.luc@gmail.com" <dal.luc@gmail.comwrote:
>>
Quote:
>>>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.
Quote:
>
Quote:
></form>
>>
>Now, instead of the "location.replace" line you quoted above, use
>these lines:
>>
>document.getElementById("myvariable").value="aaaa aaa.....zzzz";
>document.getElementById("myform").submit();
>>
--
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov
Closed Thread