cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL XML Post

From: Reginald Baugh <reginald.baugh_at_gmail.com>
Date: Thu, 30 Jun 2011 14:51:25 -0400

Greetings;

Thank you for your prompt feedback previously. I have removed the double
quotes embedded within the XML string. I also use, --trace-ascii.

I still am not receiving Responses from the server.

E:\BSG\EXE\curl -k -b E:\BSG\SEND\CLAIMS\ALMPhy\cookies.txt -c
E:\BSG\SEND\CLAIMS\ALMPhy\cookies.txt --header "Content-Type: text/xml"
--trace-asci "xml=<?xml version='1.0' encoding='UTF-8'?><requests><request
requesttype='login'><user name='Jxxxx' password='Bxxxx' provider='3xxxx'
/></request><request requesttype='listTransactionTypes' /><request
requesttype='listFiles' /></requests>"
https://www.medicaid.alabamaservices.org/ALPortal/DesktopModules/iC_Portal_BatchTransfer/BatchTransactions.aspx

== Info: About to connect() to www.medicaid.alabamaservices.org port 443
(#0)
== Info: Trying 192.85.128.73... == Info: connected
== Info: Connected to www.medicaid.alabamaservices.org (192.85.128.73) port
443 (#0)
== Info: SSLv2, Client hello (1):
=> Send SSL data, 106 bytes (0x6a)
0000: ....Q......9..8..5..............3..2../.........................
0040: ....@.....................5.tI ...(..d....
== Info: SSLv3, TLS handshake, Server hello (2):
<= Recv SSL data, 74 bytes (0x4a)
0000: ...F..N...h....U.=.....h.Z..c.....S<R" ....@.`..<..QTKE....|NS.w
0040: .%........
== Info: SSLv3, TLS handshake, CERT (11):
<= Recv SSL data, 2398 bytes (0x95e)
0000: ...Z..W..[0..W0..?.......L...0...*.H........0..1.0...U....US1.0.
0040: ..U....Entrust, Inc.1907..U...0www.entrust.net/rpa is incorporat
0080: ed by reference1.0...U....(c) 2009 Entrust, Inc.1.0,..U...%Entru
00c0: st Certification Authority - L1C0...100826204257Z..120826211256Z
0100: 0..1.0...U....US1.0...U....Texas1.0...U....Plano1.0...U....HP En
0140: terprise Services1.0...U....Alabama1)0'..U... www.medicaid.alaba
0180: maservices.org0..0...*.H............0........:w`.[H..,:.@.#'..y.
01c0: ...P..Raj...d.....ow.x#...NZ........l$<..*........id.....q/.....
0200: r..)...7%.4..M.dY&>.....>..e...S.U.J..^5.2..........0...0...U...
0240: .....0...U.%..0...+.......03..U...,0*0(.&.$."http://crl.entrust.
0280: net/level1c.crl03..+........'0%0#..+.....0...http://ocsp.entrust
02c0: .net0@..U. .90705..*.H..}.K.0(0&..+.........http://www.entrust.n
0300: et/rpa0...U.#..0.........I..3w..z..|.(M0...U......cOU..u.M.b...D
0340: ...V.C0...U....0.0...*.H................_....60.t.`S.]~.P(....|M
0380: 8.#..!...l..>,;⌂......W....}p.A..G....]..QL...$...]7......#K.3..
03c0: ...~Y......9....D.5......FR..d.W..+n.._)......8......K.5L.X.m?..
0400: ......5..⌂$.Z....h4H6.Y.........hv........7]T#W........!.m.Y....
0440: W.....\~..pj...A.>._%...!....S...;X.....0...0..........8c..0...*
0480: .H........0..1.0...U....Entrust.net1_at_0>..U...7www.entrust.net/CP
04c0: S_2048 incorp. by ref. (limits liab.)1%0#..U....(c) 1999 Entrust
0500: .net Limited1301..U...*Entrust.net Certification Authority (2048
0540: )0...091210204354Z..191210211354Z0..1.0...U....US1.0...U....Entr
0580: ust, Inc.1907..U...0www.entrust.net/rpa is incorporated by refer
05c0: ence1.0...U....(c) 2009 Entrust, Inc.1.0,..U...%Entrust Certific
0600: ation Authority - L1C0.."0...*.H.............0..........-<......
0640: .....⌂.K~Z...b.s.(k..d....W..(......P)....*...N...........Rw....
0680: ....<...M...e...?r..8.....x(.u.=......ewv$L..m18....7.v...... .I
06c0: 6$iB..7b.Ym.<.4.....:...o.....Zz..Ih.A.Z...U.QC....g..21%.T.K.o.
0700: ....^lx....:H.y<...u..............#..u.c%...=...f..fhU.........0
0740: ...0...U...........0...U.......0....03..+........'0%0#..+.....0.
0780: ..http://ocsp.entrust.net02..U...+0)0'.%.#.!http://crl.entrust.n
07c0: et/2048ca.crl0;..U. .40200..U. .0(0&..+.........http://www.entru
0800: st.net/rpa0...U............I..3w..z..|.(M0...U.#..0...U.......<http://st.net/rpa0...U............I..3w..z..%7C.%28M0...U.#..0...U.......>
..
0840: ..1..$...p0...*.H..............._..⌂.@..4FB$../....%s....i....\.
0880: W..Iv.M.?.....>...2..2.......?.Svb...m=.....<.'6^(."..@.+...Wm..
08c0: .K.s..e....1.....20..J...".z..:..I.....w<B...;(.....9....Y..,..r
0900: Dy.l..mMD.Bh..|.6......^<T../.i...).....Q..$.....)..x.w\E!.D.1..
0940: 2O..2.....vV..H....>..\i..?fE.
== Info: SSLv3, TLS handshake, Server finished (14):
<= Recv SSL data, 4 bytes (0x4)
0000: ....
== Info: SSLv3, TLS handshake, Client key exchange (16):
=> Send SSL data, 134 bytes (0x86)
0000: ...... ....`ha.....:tMk.y....u.#Y..^..tghw..0.8_}..r4.....]..x..
0040: .+ke%,s>.T......<3b.Y.U..^...M8...x..A......4.(..F.e....{..⌂f..@
0080: .h...u
== Info: SSLv3, TLS change cipher, Client hello (1):
=> Send SSL data, 1 bytes (0x1)
0000: .
== Info: SSLv3, TLS handshake, Finished (20):
=> Send SSL data, 16 bytes (0x10)
0000: ..........7.9qX.
== Info: SSLv3, TLS change cipher, Client hello (1):
<= Recv SSL data, 1 bytes (0x1)
0000: .
== Info: SSLv3, TLS handshake, Finished (20):
<= Recv SSL data, 16 bytes (0x10)
0000: ....d..R!...⌂%+.
== Info: SSL connection using RC4-MD5
== Info: Server certificate:
== Info: subject: /C=US/ST=Texas/L=Plano/O=HP Enterprise
Services/OU=Alabama/CN=www.medicaid
.alabamaservices.org
== Info: start date: 2010-08-26 20:42:57 GMT
== Info: expire date: 2012-08-26 21:12:56 GMT
== Info: common name: www.medicaid.alabamaservices.org (matched)
== Info: issuer: /C=US/O=Entrust, Inc./OU=www.entrust.net/rpa is
incorporated by reference/O
U=(c) 2009 Entrust, Inc./CN=Entrust Certification Authority - L1C
== Info: SSL certificate verify result: unable to get local issuer
certificate (20), continuing anyw
ay.
=> Send header, 381 bytes (0x17d)
0000: GET /ALPortal/DesktopModules/iC_Portal_BatchTransfer/BatchTransa
0040: ctions.aspx HTTP/1.1
0056: User-Agent: curl/7.17.1 (i386-pc-win32) libcurl/7.17.1 OpenSSL/0
0096: .9.8g zlib/1.2.3
00a8: Host: www.medicaid.alabamaservices.org
00d0: Accept: */*
00dd: Cookie: ASP.NET_SessionId=1yniav55tves5l55avlq2uye; .ASPXANONYMO
011d: US=Qys8GVc3zAEkAAAAZThkMzg5MzgtYmI5Zi00NWY4LWFhNzUtNTIyN2YyOWFhY
015d: TU40
0163: Content-Type: text/xml
017b:
<= Recv header, 17 bytes (0x11)
0000: HTTP/1.1 200 OK
<= Recv header, 37 bytes (0x25)
0000: Date: Thu, 30 Jun 2011 18:42:28 GMT
<= Recv header, 27 bytes (0x1b)
0000: Server: Microsoft-IIS/6.0
<= Recv header, 23 bytes (0x17)
0000: X-Powered-By: ASP.NET
<= Recv header, 16 bytes (0x10)
0000: X-AL-Server: 3
<= Recv header, 29 bytes (0x1d)
0000: X-AspNet-Version: 2.0.50727
<= Recv header, 24 bytes (0x18)
0000: Cache-Control: private
<= Recv header, 24 bytes (0x18)
0000: Content-Type: text/xml
<= Recv header, 20 bytes (0x14)
0000: Content-Length: 54
<= Recv header, 2 bytes (0x2)
0000:
<= Recv data, 54 bytes (0x36)
0000: ...<?xml version="1.0" encoding="utf-8"?><responses />
<?xml version="1.0" encoding="utf-8"?><responses />== Info: Connection #0
to host www.medicaid.al
abamaservices.org left intact
== Info: Closing connection #0
== Info: SSLv3, TLS alert, Client hello (1):
=> Send SSL data, 2 bytes (0x2)
0000: ..

E:\BSG\EXE>

On Wed, Jun 29, 2011 at 3:43 PM, Dan Fandrich <dan_at_coneharvesters.com>wrote:

> 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
>

-------------------------------------------------------------------
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-30