Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

Why do we want intelligent terminals when there are so many stupid users?


devel / comp.lang.clipper.visual-objects / IIS RestAPI

SubjectAuthor
o IIS RestAPIJohn Kniewasser

1
IIS RestAPI

<ba25c320-03b1-45a0-87e5-13201da56d4an@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=1431&group=comp.lang.clipper.visual-objects#1431

  copy link   Newsgroups: comp.lang.clipper.visual-objects
X-Received: by 2002:a05:620a:8ec5:b0:77d:c778:a075 with SMTP id rg5-20020a05620a8ec500b0077dc778a075mr395087qkn.3.1701603383943;
Sun, 03 Dec 2023 03:36:23 -0800 (PST)
X-Received: by 2002:a05:6808:3682:b0:3b8:b4f3:e1da with SMTP id
cr2-20020a056808368200b003b8b4f3e1damr761406oib.9.1701603383709; Sun, 03 Dec
2023 03:36:23 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.clipper.visual-objects
Date: Sun, 3 Dec 2023 03:36:23 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=205.250.135.156; posting-account=XasPhAoAAAAOplWza--8X5uTS91lFKeL
NNTP-Posting-Host: 205.250.135.156
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <ba25c320-03b1-45a0-87e5-13201da56d4an@googlegroups.com>
Subject: IIS RestAPI
From: john.kniewasser@gmail.com (John Kniewasser)
Injection-Date: Sun, 03 Dec 2023 11:36:23 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
 by: John Kniewasser - Sun, 3 Dec 2023 11:36 UTC

Good day to you all!

I am working on a RestAPI using VO 2.8SP4, with ADS and lots of Json.

If anyone is interested in some of this stuff, please revert and I will share – we are being very successful!

However, I have run into a problem when sending a big…

Connection: close
Content-Length: 50395
Content-Type: application/json
Accept: */*
Host: blahblahblah

Here is the VO Code

METHOD Init( pEcb, cLogFile, lAppend) CLASS StdHTTPContext
Default(@lAppend, .T.)
SUPER:Init( pEcb )
MemCopy( @_pECB, pECB, _sizeof( _WINEXTENSION_CONTROL_BLOCK ))

And from the _pECB struct I get the:

_pECB.cbAvailable which is 49152

On these larger items the content length is bigger than the cbAvailable and the JSON gets truncated and voila, nothing works!

Content-Length: 50395
pECB.cbAvailable which is 49152

On smaller items the content length and cbavaialbe are the same and everything works!

Loads of fun!

Thank you everyone, keep well and,

Cheers, JK

1
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor