Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Xmlhttp for larger xml files
Message
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00546988
Message ID:
00547007
Views:
14
>We are sending 1k request xml files to a server and have been receiving the proper xml response files for some time now, but when we try to send request xml files larger than 2044 bytes in size the server people tell us they are receiving truncated request files.

How are you "sending" the files?

If you are sending the files on the query string, you'll likely run into length problems quickly since most servers impose a length limit. This limit varies. The HTTP protocol does not place any a priori limit on the length of a URI, but servers can. Check to see if you are getting a 414 back, which should indicate a lengthy URI.

Likewise, if you are POSTing your XML you may encounter limits as to the maximum size of POSTed content (I often see it at 2k).

Check with your website administrator to see if any limits are in effect.

>We have tried using setrequestheader method as such:
>loxml.setrequestheader("Content-Length",len(lcxml))
>but this doesn't seem to change anything at all.
>I notice that docs say that the 2nd parameter is of type bstr.
>Could this have something to do with our failure here as we are passing a numeric value.

Content-length won't likely be your problem, nor is it the conversion of your numeric. However, you bring up an interesting point in that (I can't remember the specifics) but sometimes strings get concatenated during conversion from ActiveX controls. I'd double check that your XMLHTTP component is actually receiving all of the characters you expect it to receive.

Finally, if you are asking about an object model for XMLHTTP (like documentation for it) you'll want to download the Microsoft XML SDK. It's available at the MS XML site: http://msdn.microsoft.com/downloads/default.asp?url=/downloads/sample.asp?url=/msdn-files/027/000/542/msdncompositedoc.xml

Cheers,
Daryl
*-- Hazen Hills Software
*-- Kirkland, WA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform