_process command and multipart/form-data request

Hi,
I’ve got trouble with a multipart/form-data request:


<ino:message ino:returnvalue=“8554”><ino:messagetext ino:code=“INOXME8554”>No message received</ino:messagetext></ino:message>

The HTTP POST is created in a java application. I have compared the HTTP request of my program with the HTTP request of the Interactive Interface in a hex editor. I couldn’t see any difference.

Is it possible that there are too many or too few CRLFs or something like that?


Thanks
Pascal

This is my HTTP POST request and it works. Maybe this code could help you. It is written in ASP but I think language doesn’t matter here.

'Tamino call
Function InoCall(ByVal Command, ByVal Value)
'Command: String - Tamino command
'Result: MSXML2.DOMDocument
Dim InoRequest
Set InoRequest = Server.CreateObject(“MSXML2.ServerXMLHTTP”)
InoRequest.open “POST”, DatabaseURL & “/” & Collection, False
InoRequest.setRequestHeader “Content-Type”, “multipart/form-data; boundary=7d13bd33500f6”
Dim Data
Data = “”
Data = Data & “–7d13bd33500f6” & VbCrLf
Data = Data & “Content-Disposition: form-data; name=”“_encoding”“” & VbCrLf
Data = Data & VbCrLf
Data = Data & “utf-8” & VbCrLf
Data = Data & “–7d13bd33500f6” & VbCrLf
Data = Data & “Content-Disposition: form-data; name=”“” & Command & “”“” & VbCrLf
Data = Data & VbCrLf
Data = Data & Value & VbCrLf
Data = Data & “–7d13bd33500f6–” & VbCrLf
InoRequest.send Data
If Not InoGetError(InoRequest.responseXML) Is Nothing Then
Err.Raise 1, “Tamino”, InoGetError(InoRequest.responseXML).xml
End If
Set InoCall = InoRequest.responseXML
Set InoRequest = Nothing
End Function