i want to pass XML data in querystring from one to another asp page.
it is about 10000 characters long, i cannot use FORM because it is
already nested in one.
What i do is i have IFRAME and im passing some xml data
in QUERYSTRING. It doesnt work somehow, im using javascript escape
method to substitute escape characters, but most of characters are
being truncated (about 300-500 left).
Are there limits in querystring length?
what else should i try??
any help appreciated
Dennis Myrén - 27 Apr 2005 15:10 GMT
Can't you use POST?
Post it like this:
public static void PostData ( string destURL, string data )
{
WebRequest r = WebRequest.Create(destURL);
r.Method = "POST";
r.ContentType = "application/x-www-form-urlencoded";
StreamWriter w = new StreamWriter(r.GetRequestStream());
w.Write(data);
w.Close();
}
Then use Request.InputStream to read the data.
PS
Yes there is a limit for the querystring length, although i am not sure what
it is.

Signature
Regards,
Dennis JD Myrén
Oslo Kodebureau
>i want to pass XML data in querystring from one to another asp page.
> it is about 10000 characters long, i cannot use FORM because it is
[quoted text clipped - 7 lines]
>
> any help appreciated
Joerg Jooss - 27 Apr 2005 20:44 GMT
> i want to pass XML data in querystring from one to another asp page.
> it is about 10000 characters long, i cannot use FORM because it is
> already nested in one.
Forget about that. URLs are not meant (read "specified") to transport
such payload. Any upstream HTTP processor may simply truncate the URL.
> What i do is i have IFRAME and im passing some xml data
> in QUERYSTRING. It doesnt work somehow, im using javascript escape
> method to substitute escape characters, but most of characters are
> being truncated (about 300-500 left).
> Are there limits in querystring length?
Yes. There's no specified maximum length, but experience shows that
query strings longer than 2 kB are to avoided.
> what else should i try??
HTTP POST.
Cheers,

Signature
http://www.joergjooss.de
mailto:news-reply@joergjooss.de