Scott,
I modified HTTPAPIR4, procedure do_oper() to add the CRLF directly to the request when no additonal header is present. If an additional header is present, the requests are sent in three parts as before.
After this modification HTTPAPI is as fast as the PC clients (100 times faster in my tests).
I changed this:
...
*********************************************************
* Send request chain & get response
*********************************************************
c if %len(wwAddlHdr) = 0
c eval wwReqChain = wwReqChain + CRLF
c endif
c eval rc = SendReq( peComm
c : %addr(wwReqChain)+VARPREF
c : %len(wwReqChain)
c : peTimeout )
c if rc < 1
c return rc
c endif
c if %len(wwAddlHdr) > 0
c eval rc = SendReq( peComm
c : %addr(wwAddlHdr)+VARPREF
c : %len(wwAddlHdr)
c : peTimeout )
c if rc < 1
c return rc
c endif
c eval wwReqChain = CRLF
c eval rc = SendReq( peComm
c : %addr(wwReqChain)+VARPREF
c : %len(wwReqChain)
c : peTimeout )
c if rc < 1
c return rc
c endif
c endif
*********************************************************
* If this request requires a request-body (POST/PUT data)
* then it should be sent, here.
*********************************************************
c if peOper='PUT' or peOper='POST'
...
-----Original Message-----
From: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx [mailto:ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of Sawatzki, Peter
Sent: Friday, May 30, 2014 12:01 PM
To: 'HTTPAPI and FTPAPI Projects'
Subject: RE: httpapi speed
Scott,
I implemented the changes you suggested in my test program but unfortunatly the performance didn't impoved at all.
To further eliminate any other issues I may have I used a toString procedure that does nothing (just returns the length) and I'm reuqsting a simple static htm file that has only "pong" as a contents (4 bytes). So I'm simply calling "http://192.168.101.5/ping.htm".
...
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------