Liam,

Thx for your proposal. Unix C++ user can use the already existing BaseX API, that unfortunately don't work for poor Windows users.
My program do send information to BaseX server, since the server replies through its log "admin (the user account I am using to log in) -- acces denied". There is probably something in the MD5 algorithm that I am using. However, I checked that the MD5 algorithm computes correctly the hash for 'admin'.

If BaseX server could echo the incoming request, that would be of great help, but I don't know how to do this. If nobody knows, I will have to fork the BAseX code and to try compile a server to see what is happening on the server side...that is probably some days of hard works :(



2014/1/6 Liam R E Quin <liam@w3.org>
On Mon, 2014-01-06 at 21:15 +0100, jean-marc Mercier wrote:
> Hello,
>
> I still can't connect to BaseX. I checked that I sent to the server exactly
> the same bytes than the C# connector that worked on my configuration.
>
> Is there any way to make the BaseX server echoing any input request on a
> particular socket to check exactly what my TCP connector is sending ?
I do have an old C program I wrote years ago that saves a copy of data
sent on a socket into a file; I wrote it for Unix but maybe it'd work
for you. There are some packages for Linux that do soemthing similar
too.

Make sure that you check the return value of every system call you use -
writing to a socket does not necessarily succeed. Make sure also that
your code connects to the right IP address and port - e.g. try
connecting to something like a Web server where you can see the logs,
and sending "GET / HTTP/1.0\r\nAccept: */*\r\n\r\n" at it. Forgetting to
convert addresses and port numbers to network order is sometimes an
issue.

Liam

--
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml