NetTalk Central

NetTalk Web Server => Web Server - Ask For Help => Topic started by: Flint G on January 06, 2011, 12:59:22 PM

Title: Accepting larger than 4096 character posts
Post by: Flint G on January 06, 2011, 12:59:22 PM
Hello Bruce, et. al.

I have an ABC web server built on 7.2.7600 w/ NetTalk 5.05 ( I know, why haven't I upgraded yet? ... I just haven't) that accepts an XML post through a NetWebPage.

I have a Clarion web client built on 6.3.9053 w/ NetTalk 4.49 (I know, why haven't I upgraded yet? ... I just haven't) that posts an XML string to the aforementioned server.

I have complete control over both ends of the communication (fantastic!  I know ...), so when I attempt to post an XML string that exceeds the 4096 maximum (say, 75,000 characters, standard text -- not base 64 encoded), the post shows up clipped to 4096 characters at the Web Server.

Two questions:
1. Which piece is doing the clipping; the Web Client or the Web Server?
2. How do I post a string that exceeds the 4096 character maximum?  Or rather, what's the simplest way to get around the maximum post length?

Best regards,
Flint
Title: Re: Accepting larger than 4096 character posts
Post by: Bruce on January 07, 2011, 03:55:21 AM
Hi Flint,

Be aware that the web server screen control does not necessarily show you the whole packet if it's very large.

So first thing to determine is the size of the actual value - which on the server side I presume you're getting with p_web.GetValue('xml') as in

x = len(clip(p_web.GetValue('xml')))

second thing - on the sending side, make sure you are sending the whole string.

Cheers
Bruce


Title: Re: Accepting larger than 4096 character posts
Post by: Flint G on January 10, 2011, 10:23:11 AM
Bruce,

Egg on my face today. I was able to get the large post string to go through just fine ... after I realized I was also chopping the string in a local variable string of 5000 characters ... the 4096 length I was seeing fits neatly in the 5000 length variable.

Until next time... :-[

Regards,
Flint