cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL XML Post

From: Dan Fandrich <dan_at_coneharvesters.com>
Date: Wed, 29 Jun 2011 12:43:29 -0700

On Wed, Jun 29, 2011 at 03:19:52PM -0400, Reginald Baugh wrote:
> I am connecting to a server via xml post messages.
>
> The script communicates with the server, however I don't receive any response
> info in return.  Does the syntax look correct?
>
> E:\BSG\EXE\curl -k -b E:\BSG\SEND\CLAIMS\ALMPhy\cookies.txt -c E:\BSG\SEND\
> CLAIMS\ALMPhy\cookies.txt -v --header "Content-Type: text/xml" --data "xml=<?
> xml version="1.0"?><requests><request requesttype= login ><user name= Jxxx

This is suspect. You're using double quotes to delimit the data, yet are also
using double quotes as the data itself. You can use the --trace-ascii option
to look at the data sent over the wire to determine whether there are other
quoting issues involved.

> password= Bxxx provider="xxx" /></request><request requesttype=
> listTransactionTypes /><request requesttype="listFiles" /></requests>" https:/
> /www.medicaid.alabamaservices.org/ALPortal/DesktopModules/
> iC_Portal_BatchTransfer/BatchTransactions.aspx

>>> Dan
-------------------------------------------------------------------
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 2011-06-29