NetTalk Central

Author Topic: Accepting larger than 4096 character posts  (Read 3531 times)

Flint G

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Accepting larger than 4096 character posts
« 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
NetTalk: 12.26
Clarion: 9.1.11529
Brave: 1.31.88
Chrome: 95.0.4638.69
Edge: 95.0.1020.44
ExtJS: 7.0.0.156

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Accepting larger than 4096 character posts
« Reply #1 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



Flint G

  • Jr. Member
  • **
  • Posts: 55
    • View Profile
    • Email
Re: Accepting larger than 4096 character posts
« Reply #2 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
NetTalk: 12.26
Clarion: 9.1.11529
Brave: 1.31.88
Chrome: 95.0.4638.69
Edge: 95.0.1020.44
ExtJS: 7.0.0.156