cURL / Mailing Lists / curl-users / Single Mail

curl-users

How to upload an soap request

From: Poul Erik Voetmann Nielsen <poulerik_at_pet.auh.dk>
Date: Sun, 19 Sep 2010 15:08:01 +0200

  Hi curl users

I am new to curl and have a problem I can't find out
I have made a script, se below
In first line I call the server, the other lines is ment as input to curl
Which option shall I put in first line, so curl wil transfer all the
line to the server?

Thank you in advance

Poul Erik Nielsen

Denmark

curl http://service.pubhub.dk << eof
POST /MediaService.asmx?wsdl HTTP/1.1
Content-Type: txt/xml;charsey=UTF-8
SOAPAction: "http://service.pubhub.dk/ListAllBooksIds"
Host: service.pubhub.dk
Content-Length: 326

<soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ser="http://service.pubhub.dk/">
<soapenv:Header/>
<soapenv:Body>
<ser:ListAllBookIds>
<ser:licenseKey>1234567890-1234567890-1234567890-123456</ser:licenseKey>
</ser:ListAllBookIds>
</soapenv:Body>
</soapenv:Envelope>
eof

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2010-09-19