Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

IS there a size limit on the length of the QueryString in URL?

Status
Not open for further replies.

mb22

Programmer
Sep 4, 2002
258
US
I'm trying something interesting..... I need to interface with another vendors .NET web service. however they are not ready yet and cannot wait ... meanwhile they have a VB6 windows app .... from which I want them to be able to interface with my .NET web app in the interim.

Now the issue is how to pass data over to my web app. Typically their VB6 app spits out an extract file ..single row variable length....

From the VB6 app I am thinking of them launching my app like
doe 123 Street Road'

..then i can read from Request.QueryString("filespec") ....and do what I need to do. Now granted sometimes filespec might be far too long in length to fit in the URL limit, .. I suppose .. so I need to know the limit.

In that case I am thinking of creating a batch file to FTP the whole extract file itself ... and then lauching my site with the name of the uploaded file automatically after that.


what do you think of these 2 approaches? I think there is a limit on the querystring but i can't remember.... is the 2nd method better overall while I wait for true web service to pass the file as XML to the web service?

The show must go on according to my boss!
 
Your second approcah is better as you said querystring has limitations of kbs range. Also why not you pass filespec as xml (instead of txt file) itself so it in future you cannt recode much.

siva
 
good idea ... you see they already had the code to create the txt file and I already have the code to read in the txt file also... so for now i wanted them to retain that code for time sake ..... but converting it to XML would be best since it will easier for me to read it in .. from ASP.NET.

Is 64K .. the limit in querystring size? do yo know? You see I'm just trying to see that if it is unlikely to exceed the limit then the first approach will be easier though not as solid as the second one ... but at least it will save me the extra step of having to FTP the file.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top