Hi! Has any one tried to send hl7 msgs to connect virginia via their url. I am trying to use TclCurl with Cloverleaf5.7 and when I send them a hl7 msg, I get the error from them “HTTP/1.1 500 Cannot read request parameters due Invalid parameter.” I believe this is because I am just sending the msg without a pair. Connect Virginia says they just need the msg at the body of the POST. They do not need any pairs. I tried with adding a pair as well and that seemed to help but then they said VDH doesn’t like it (once we send the data to connect virginia they send to VDH).Can anyone suggest something.
Here is the chunk of my code:
if {[catch {curl::transfer -url $url
-verbose 1
-httpheader $httpheaders
-post 1
-postfields “$postmessage”
-bodyvar reply
-headervar headers
-errorbuffer err
-timeout $av_timeout
-nosignal 1
-cainfo $certFile
-sslcert $privKey
-sslkeypasswd $passwd
-sslverifypeer 0 } tclerr]} {
echo “ERROR – $HciConnName – $tclerr n $err”
}
Thanks,
Meg Cooper