?
Solved

Using XMLHTTP to post data, size limit hit.

Posted on 2003-03-31
3
Medium Priority
?
482 Views
Last Modified: 2013-12-27
I'm using the XMLHTTP object to post data from a PocketPC 2002 handheld to a web server. The problem I am having is that there seems to be a limit on the size of data that can be posted this way. Using this code:

Dim xHttp as object
Dim sendStr as string

sendString = FunctionToGetSendString() '' located elsewhere

Set xHTTP = CreateObject("Microsoft.XMLHTTP")

xHTTP.open "POST", "http://mywebserver/mypage.asp", False

xHTTP.send  sendString


This works fine most of the time, only when the sendString gets larger than +-1500 bytes does it start to crash. Also, it only happens when I'm dialled up on a modem, if I run this program while the device is placed in the cradle using the host's internet connect there is not limit on the length of the sendString... This is all very weird.. any help appreciated.
0
Comment
Question by:deem1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 3

Expert Comment

by:joao_patrao
ID: 8252503
You are right.
I experimented the same problem and the maximum size of info that i could post was around 1500 bytes. You have a limitation on GET of 256 bytes, but i never saw info about limits on POST...

If you want to send more information, you need to parse the data into separate POST and then reconstruct on the server(destination) side.

I tested this in some projects already to send around 200K of information to the backoffice, with sucess.

Hope it helps...

Best Regards
Joao Patrao
0
 

Author Comment

by:deem1
ID: 8253078
I tested, the exact limit is 1420 bytes. I've rewritten my software to split large data into smaller pieces of this size, but the ideal is to get the thing to work as it was supposed to :-(
0
 
LVL 3

Accepted Solution

by:
joao_patrao earned 1500 total points
ID: 8254131
I contacted some friends at Microsoft at the time to check if it was a problem with the HTTP control...
... and they told me that it was a known issue that should be resolved in new versions of the OS...

Best regards
Joao Patrao
0

Featured Post

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Let me explain this picture a little bit.  First, in case you haven't already guessed, you are looking at my 2 phones, an Android Samsung Galaxy S5 on the left and an iPhone 5 on the right.  They are on their respective cradles on my desk.  But, you…
I recently asked a question (http://www.experts-exchange.com/Programming/Smartphones/Android/Q_28684946.html) about Computer Inventory applications for Mobile Devices.  I was specifically interested in an app I could use on my android phone.  The be…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
Suggested Courses
Course of the Month9 days, 11 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question