Hi, My name is Henrique and I've never use openssl before.
But I Have a problem.
I have a Shell script that uses curl to send a POST REQUEST to a Webservice e the result was stored in an asc file, something like this:
curl --data "Param1=xpto1&Param2=xpto2&Param3=xpto3" //<Host>/<Post Url> > file_xml
I have to do the same in another server, but I have available only the openssl.
I'm able to connect using s_client
Ex.:
openssl s_client -connect Host:Port
The "GET" command using the <Post Url> URL works fine
Ex.:
GET Post Url
but the Post doesn't.
Ex.:
Post: <Post Url>
Host: intranet.xpto
Content-Type: application/x-www-form-urlencoded
Content-Length: 1000
Param1=xpto1&Param2=xpto2&Param3=xpto3
But I get the message of "Invalid Hader"
Can someone help me with another example or tell me what I'm doing wrong?
Thanks in advance