Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > How to pass a long parameter string to a ASP page via Post parameters

Reply
Thread Tools

How to pass a long parameter string to a ASP page via Post parameters

 
 
Belinda
Guest
Posts: n/a
 
      06-04-2004
Hello All

I have the following test.asp page which needs one parameter querystr
but my querystr is a very long string value. When I send a long value
the query string is getting truncated after some characters.

Can you please kindly share the code segment to workaround how to pass
such a long string value to a asp page. This is how I invoke the test
page:

http://localhost/?querystr=select ............ from xxxxx

'test.asp
<html>
<body>

<%

response.write("Hello World!")
w=request.querystring("querystr")

response.write "<td><p></td>" & w
%>

</body>
</html>


but part of my query string never gets passed to the asp page appears
asp as a limitation on max string length can you please provide me a
workaround how I can overcome and pass the right string to asp. Please
post the code snippet.

Thanks
Belinda
 
Reply With Quote
 
 
 
 
Aaron [SQL Server MVP]
Guest
Posts: n/a
 
      06-04-2004
That's not a POST, that's a GET.

http://www.aspfaq.com/2222
http://www.aspfaq.com/2223

--
http://www.aspfaq.com/
(Reverse address to reply.)




"Belinda" <> wrote in message
news: om...
> Hello All
>
> I have the following test.asp page which needs one parameter querystr
> but my querystr is a very long string value. When I send a long value
> the query string is getting truncated after some characters.
>
> Can you please kindly share the code segment to workaround how to pass
> such a long string value to a asp page. This is how I invoke the test
> page:
>
> http://localhost/?querystr=select ............ from xxxxx
>
> 'test.asp
> <html>
> <body>
>
> <%
>
> response.write("Hello World!")
> w=request.querystring("querystr")
>
> response.write "<td><p></td>" & w
> %>
>
> </body>
> </html>
>
>
> but part of my query string never gets passed to the asp page appears
> asp as a limitation on max string length can you please provide me a
> workaround how I can overcome and pass the right string to asp. Please
> post the code snippet.
>
> Thanks
> Belinda



 
Reply With Quote
 
 
 
 
James Baker
Guest
Posts: n/a
 
      06-04-2004
From what I can remember, there's something like a 256 character limit on a
querystring value. Might not be exact, but I'm almost positive there's a
limit. Why don't you use a traditional post to the other page (setting
action="2ndPage.asp" and method="post") and do a Request.Form("name")? Is
there some reason you have to avoid that approach?

James


 
Reply With Quote
 
Patrice
Guest
Posts: n/a
 
      06-04-2004
You can't pass more than 2048 characters in the querystring (for IE, this is
browser dependant, don"t know for others).
You may want to use POST instead.

Also what is your scenario ? Is this string needed client side ? you may
want to avoid to expose this string as this could represent quite a high
risk.

If this is for inter applications communication, you may want to enchance
this mechanism (encryption, standard package such as the SOAP SDK ?)

Patrice

> Belinda" <> a écrit dans le message de

news: om...
> Hello All
>
> I have the following test.asp page which needs one parameter querystr
> but my querystr is a very long string value. When I send a long value
> the query string is getting truncated after some characters.
>
> Can you please kindly share the code segment to workaround how to pass
> such a long string value to a asp page. This is how I invoke the test
> page:
>
> http://localhost/?querystr=select ............ from xxxxx
>
> 'test.asp
> <html>
> <body>
>
> <%
>
> response.write("Hello World!")
> w=request.querystring("querystr")
>
> response.write "<td><p></td>" & w
> %>
>
> </body>
> </html>
>
>
> but part of my query string never gets passed to the asp page appears
> asp as a limitation on max string length can you please provide me a
> workaround how I can overcome and pass the right string to asp. Please
> post the code snippet.
>
> Thanks
> Belinda



 
Reply With Quote
 
Belinda
Guest
Posts: n/a
 
      06-04-2004
"Patrice" <> wrote in message news:<#>...
> You can't pass more than 2048 characters in the querystring (for IE, this is
> browser dependant, don"t know for others).
> You may want to use POST instead.
>
> Also what is your scenario ? Is this string needed client side ? you may
> want to avoid to expose this string as this could represent quite a high
> risk.
>
> If this is for inter applications communication, you may want to enchance
> this mechanism (encryption, standard package such as the SOAP SDK ?)
>
> Patrice
>
> > Belinda" <> a écrit dans le message de

> news: om...
> > Hello All
> >
> > I have the following test.asp page which needs one parameter querystr
> > but my querystr is a very long string value. When I send a long value
> > the query string is getting truncated after some characters.
> >
> > Can you please kindly share the code segment to workaround how to pass
> > such a long string value to a asp page. This is how I invoke the test
> > page:
> >
> > http://localhost/?querystr=select ............ from xxxxx
> >
> > 'test.asp
> > <html>
> > <body>
> >
> > <%
> >
> > response.write("Hello World!")
> > w=request.querystring("querystr")
> >
> > response.write "<td><p></td>" & w
> > %>
> >
> > </body>
> > </html>
> >
> >
> > but part of my query string never gets passed to the asp page appears
> > asp as a limitation on max string length can you please provide me a
> > workaround how I can overcome and pass the right string to asp. Please
> > post the code snippet.
> >
> > Thanks
> > Belinda


Many thanks for all your views.

Actually this parameter passing and running of this URL will not be
from IE I will do it from a Excel web query. So security should not be
a issue.

Can you kindly let me know how I can do it using POST some samples of
doing it just like passing it in the URL parameter.

Thanks
Belinda
 
Reply With Quote
 
Roland Hall
Guest
Posts: n/a
 
      06-05-2004
"Belinda" wrote in message
news: m...
: "Patrice" <> wrote in message
news:<#>...
: > You can't pass more than 2048 characters in the querystring (for IE,
this is
: > browser dependant, don"t know for others).
: > You may want to use POST instead.
: >
: > Also what is your scenario ? Is this string needed client side ? you may
: > want to avoid to expose this string as this could represent quite a high
: > risk.
: >
: > If this is for inter applications communication, you may want to
enchance
: > this mechanism (encryption, standard package such as the SOAP SDK ?)
: >
: > Patrice
: >
: > > Belinda" <> a écrit dans le message de
: > news: om...
: > > Hello All
: > >
: > > I have the following test.asp page which needs one parameter querystr
: > > but my querystr is a very long string value. When I send a long value
: > > the query string is getting truncated after some characters.
: > >
: > > Can you please kindly share the code segment to workaround how to pass
: > > such a long string value to a asp page. This is how I invoke the test
: > > page:
: > >
: > > http://localhost/?querystr=select ............ from xxxxx
: > >
: > > 'test.asp
: > > <html>
: > > <body>
: > >
: > > <%
: > >
: > > response.write("Hello World!")
: > > w=request.querystring("querystr")
: > >
: > > response.write "<td><p></td>" & w
: > > %>
: > >
: > > </body>
: > > </html>
: > >
: > >
: > > but part of my query string never gets passed to the asp page appears
: > > asp as a limitation on max string length can you please provide me a
: > > workaround how I can overcome and pass the right string to asp. Please
: > > post the code snippet.
: > >
: > > Thanks
: > > Belinda
:
: Many thanks for all your views.
:
: Actually this parameter passing and running of this URL will not be
: from IE I will do it from a Excel web query. So security should not be
: a issue.
:
: Can you kindly let me know how I can do it using POST some samples of
: doing it just like passing it in the URL parameter.

Belinda...

You're just typing this in on the address line or what?

To POST, you set method="post" in a form and submit the form to your target
..asp page.

--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How to pass a parameter for a function parameter in a function AzamSharp Javascript 2 07-05-2008 12:24 AM
Having compilation error: no match for call to ‘(const __gnu_cxx::hash<long long int>) (const long long int&)’ veryhotsausage C++ 1 07-04-2008 05:41 PM
does a "parameters"-parameter overwrite the "parameters"-object? Florian Loitsch Javascript 11 03-15-2005 03:33 PM
Pass XML Request String via HTTP POST Question Matt ASP General 5 05-04-2004 05:41 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57