Today (Saturday) We will make some minor tuning adjustments to MySQL.

You may experience 2 up to 10 seconds "glitch time" when we restart MySQL. We expect to make these adjustments around 1AM Eastern Daylight Saving Time (EDT) US.


Curl command to post headers


Login or Register to Reply

 
Thread Tools Search this Thread
# 1  
Curl command to post headers

I am trying post SOAP header from file to curl command.

The curl command is
Code:
curl -vk -H "$(cat curl-test1.txt)" -X POST https://xvcfvusdgfsd.sdfjd.gf/cmsws/CMSService

The contet of curl file is
Code:
POST: https://cmsuat.chrysler.com/cmsusws/CMSService HTTP/1.1
SOAPAction: "http://jaxws.cmsws.cxxxxxxxx.com/ExecuteDataProcess"
GenericID:xxxxxxxx
Password:xxxxx
DataKey:3XwSVgQrd1WB9iqau7VOh33FwaXM2674/icCtJYbminOGGTCN+XxmEIOrrd5ap2fh37WHEGP1Vnc70rN86cuh3GujOYCVZ9h6m514po0IqcyTXjG+jRBGNhCGBxD/uaBvtN3kWbim01PM3vOlVx412LjykEUDmhfUZhyFJ0CAsy9KLQBLCazGP5fNhri0c/YAldEKgZ2sLn1SyPfydI8j8zBbtKjZn8kWCZ4Le5yBZUba0YjRT7cgek7yS9dT2MN02+2ABoQUQ2iwa+bz1nGMEVf8zdc76W2hIUnqjl1cAIv4AORw2RhVuyOcPGhyVnFrMGMwZyekIymfxjB7v92nQ34C7LXw8AjVn1qDVKxchctctdqey33lCvoNukhTkD5mRwJ4zGT9AixW5/V6SV898KzWV08lXaE/9z/wALoSPodgHFKFCZkb0psi9WwEVxG03NPHaeclHBKFDfOVVd/OG2rDnSXUBhMKw+p63cQq6sQ1mMASQs9YPKngEMk4L2yMLlICy6It26W+rSRzW2LfpLDnFPSOpkmgGML3ltAZVMUKvLlMnz3SWzBiviwjJ3AAazZTRktRBKlk9CxqOFBdQ/w3hOUadiOvrL5fWnlKa2TsFBFj9nmN8O/PND3BUSzFv+dXojpyn7DUg0wCJfyREovpvSBtVtn3wXGnwLwZLtPcrDZh/NuGBEfcNMSMKN2rTk/nUhpbojj0XCEqCKkPqpTNkyfwnZeZ7/5vXZQ34mvc4hvQXbkxBCvl2kgJLnvg6cEfilQoJqv1hRILEWS2tefiBACTcoYGaT7JyCq2uk8+SiLDziqGGBmOat+PijJLnMH/eXK8wGKBFHbzj2IAuIvZfa/g8YFylsitgU9ujJCfO0Q/v+8AnwBiUFFxFCRCOOd3gam+SFxFGe1gZdmqlTWsbVOuAzK45myW+YDFhzLcOv9tOQ36YT2gmOJV9YdB3hBATuGmxPLkPPHJxYgapJlNWiJzC8JimMaMWAuHVmCWnBR+h9iFr+3kSoJ1zMSvm/nfF1Bj9ECEkPhAsb/S16Faclg0JFHegLFC0hGU+7iiXq+i6yc/TsQ1/eV5fH+wx2XF196j5y+DxYluCjLiiwB+7AUKuo7weRXIzyeYU/IYJ48idJOoQFjSr0cdD7aJw3rC69+cQfz98z3zgNihZMOTulVB29X1tW5DctneHsUyYjN59LiZzkY9qTJnfRqbJJx4Qgvi10/sPaSsDsPHZXxd+rjwVzfSjoUeQsdw+xBQ5L9hVjOtUkW7j3ZxkVB
TimeStamp:2013-12-10 20:07:57.813
Market: US
SOAPInput: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:jax="http://jaxws.cmsws.cms.xxxxxx">
   <soapenv:Header>
</soapenv:Header>
   <soapenv:Body>
      <jax:ExecuteDataProcess>
      </jax:ExecuteDataProcess>
   </soapenv:Body>
</soapenv:Envelope>


The error am getting is

Code:
*   Trying xxx.xx.xx.xx....
* Connected to xxxxxxx (xxxxxxxx) port 443 (#0)
* TLS 1.0 connection using TLS_RSA_WITH_AES_256_CBC_SHA
* Server certificate: cmsuat.chrysler.com
> POST /cmsws/CMSService HTTP/1.1
> Host: xxxxxxxxxx
> User-Agent: curl/7.43.0
> Accept: */*
> POST: https://xxxxxxxxxxx/cmsusws/CMSService HTTP/1.1
> SOAPAction: "http://jaxws.cmsws.xxxxxxxx/ExecuteDataProcess"
> GenericID:xxxxx
> Password:xxxxxxx
> DataKey:3XwSVgQ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y+DxYluCjLiiwB+7AUKuo7weRXIzyeYU/IYJ48idJOoQFjSr0cdD7aJw3rC69+cQfz98z3zgNihZMOTulVB29X1tW5DctneHsUyYjN59LiZzkY9qTJnfRqbJJx4Qgvi10/sPaSsDsPHZXxd+rjwVzfSjoUeQsdw+xBQ5L9hVjOtUkW7j3ZxkVB
> TimeStamp:2013-12-10 20:07:57.813
> Market: US
> SOAPInput: <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:jax="http://jaxws.cmsws.xxxxxxxxx">
>    <soapenv:Header>
> </soapenv:Header>
>    <soapenv:Body>
>       <jax:ExecuteDataProcess>
>       </jax:ExecuteDataProcess>
>    </soapenv:Body>
> </soapenv:Envelope>
> 
< HTTP/1.1 500 Internal Server Error
< Date: Wed, 25 May 2016 21:29:31 GMT
< Content-Length: 471
< Connection: close
< Content-Type: application/soap+xml; charset=UTF-8; action="http://www.w3.org/2005/08/addressing/soap/fault"
< Content-Language: en-US
< 
* Closing connection 0
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope"><soapenv:Body><soapenv:Fault><soapenv:Code><soapenv:Value>soapenv:Receiver</soapenv:Value></soapenv:Code><soapenv:Reason><soapenv:Text xml:lang="en-US">javax.xml.stream.XMLStreamException: The root element is required in a well-formed document.</soapenv:Text></soapenv:Reason><soapenv:Detail></soapenv:Detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>


Last edited by dineshaila; 05-26-2016 at 07:04 AM..
# 2  
I can't help much with SOAP, but I'm certain what you have as SOAPInput should be the body of the message, not mixed in with the headers, as headers cannot contain newlines.
Login or Register to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

More UNIX and Linux Forum Topics You Might Find Helpful
Curl - post form issue
Fred13
I'm having an issue with curl post form, I dont' understand what I'm mising. I would like to send a post command login/password to a form, quite simple in the paper. URL : http: // <myebsite> / login Here the form source code : <form action="/login_check" method="post"> <input...... Web Development
3
Web Development
Wget and curl to post data
SkySmart
i'm using this command to post data to a remote host: wget --post-data="My Data" http://<my-ip>:80 -O /dev/null -q and curl --data "My Data" http://<my-ip>:80 however, when i run the above, i see the following in my access log on the remote host: Wget: 10.10.10.10 - - "POST /...... Shell Programming and Scripting
1
Shell Programming and Scripting
Data Post with curl
iddfcr
how to make the bash script ? http://server.com/mysql.php POST /mysql.php HTTP/1.1 Host: server.com User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:26.0) Gecko/20100101 Firefox/26.0 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8 Accept-Language:...... Web Development
1
Web Development
Using cURL to submit a post form
hansvg
I am trying to write a shell script to use curl in order to automate downloading data from a website. The URL with the post form is here: http://try-db.org/de/InfoBySpecies.php . I have a list of about 1800 different species I want to check. For Example, choose the first species and use the...... Shell Programming and Scripting
2
Shell Programming and Scripting
curl - sending headers, no-cache
webhope
Hello, I have question about curl - how can I disable caching on server side? I actually am not on unix/linux but I use win32gnu curl. I look for some good web- manual and I would like to find some good site which describes how looks headers of various Browsers (Safari, Opera). I have FF and...... UNIX for Dummies Questions & Answers
0
UNIX for Dummies Questions & Answers

Featured Tech Videos