View Full Version : post array in URL

07-13-2005, 09:38 PM
hello i need to send a set of names to a webservice in order to use this information there, the problem is i may have more of 400 names to send to this webservice and i can not send so much information in the URL because of the URL string size.
the thing is, i thought i can send this set of names using an array and post this array in the URL string but i found i can not serialize an array in javascript, is this true or any other suggestion to this problem?? the goal of this is get the set of names to go to the webservice. any help would be appreciate.

thank's in advance

07-14-2005, 03:39 PM
Have you looked into using the xmlhttprequest object and using POST instead of GET? You won't run into the size limitation that way.
As to serializing arrays, you could roll your own. But I think you're better off just sending the data as POST.

07-17-2005, 12:11 AM
thank's for the advice, but one more question,
can i send the string array using this object or i have to format a string with the names i need to send??

any help would be apreciate, thank's in advance

07-17-2005, 01:12 AM
You'd have to put the values into a string.
Not a big deal, though. Simple loop.

07-27-2005, 04:58 PM
thank you nikki after all the test i did the only solution that works is xmlhttprequest your help was very valuable. :thumbsup:

04-03-2008, 03:24 PM

I am facing the same problem, can u plesae help me how to use xmlhttprequest to send array in URL.I am using C#.

Thanks in advance its very urgent.