I'm currently developing a SyncML connector for Linux PIM application (Pixil) by using the C++ Client API.
In order to test the connector, I'm utilizing SCTS (SyncML Conformance Test Suite) as a server-side DB.
For network connection, curlTransportAgent is used.
My problem is that
As soon as curlTransportAgent->sendmessage(...) sends a HTTP request,
the SCTS terminates the connection, sending FIN&ACK (I checked it by using a packet sniffer)
without sending any response. So the connector is returned with "Empty reply from server" from CURL lib.
It seems that the SCTS close the connection right after accepting and reading the HTTP request.
The HTTP request is as follows,
----------------------------------------------
POST /syncml HTTP/1.1
User-Agent: useragent
Host: 165.213.209.54:8080
Accept: */*
Content-Type: application/vnd.syncml+xml
Content-Length: 1312
Expect: 100-continue
-----------------------------------------------
Regarding the server SCTS configuration,
I created a normal SCTS account with a system database having
URI syncml
MIME Type text/plain
and incoming authentication was disabled.
I guess that the formats of the URIs may be wrong, an authentication issue, or "100-continue" is not supported.
Could you help me find a way out of this problem or recommend a simple SyncML server source code so as
to chase the server side behavior with a debugger, any other smart way to debug.
Thank you. :-)
Sang Seok