In order to get information from a printer, it requires a Post with an XML , wait for the valid reply and then Get command on the same connection to get the values.
I use HTTPSocket asynchronous to do this,
and the Post works: the printer replies with status code 200 (which is supposed to happen).
But when I then use the same connection (that wa slept alive) to Get the result of my query placed in the Post,
I get a 409 Conflict in the response header.
I know this means the HTTP POST and HTTP GET are not paired, but I don’t know how to fix this.
dim f as FolderItem
dim s as text
dim l as string
dim t as TextInputStream
if f<>nil then
dim URL as string
system.DebugLog “request about to be sent”
while replied=false // Pagereceived event sets replied to True
app.DoEvents // I know this is not very nice coding, but it works
system.DebugLog “Getting reply…”