cURL / Mailing Lists / curl-users / Single Mail

curl-users

RE: curl with exec from a shell script

From: Roth, Kevin P. <KPRoth_at_MarathonOil.com>
Date: Fri, 7 Feb 2003 17:04:25 -0500

My bet is on the message content. Does BB have a way to URLencode the
"&MESSAGE=" parameter it sends? It's got a "%" sign embedded, which
is perhaps not a valid character for the receiving machine? It also
has spaces embedded. Usually spaces should turn into "%20"...

If you still can't find the problem, please also post this same section
from the version that worked (that you ran manually). The one that's
only 300-some bytes long. It would be interesting to see what
the differences are.

- Kevin

-----Original Message-----
From: Harry Sufehmi [mailto:milis-ktr_at_harrysufehmi.com]
Sent: Friday, February 07, 2003 1:20 PM

However, the trace file looks okay to me.
Then again, I'm no expert on curl.

Any idea why it doesn't work?

--------------------
== Info: About to connect() to 10.90.193.209:8080
== Info: Connected to 10.90.193.209 (10.90.193.209) port 8080
=> Send header, 314 bytes (0x13a)
0000: POST http://smsgate.truesenses.com/cgi-bin/smsgateway.cgi HTTP/1
0040: .1
0044: User-Agent: curl/7.10.3 (i686-pc-linux-gnu) libcurl/7.10.3
0080: Host: smsgate.truesenses.com
009e: Pragma: no-cache
00b0: Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
00f2: Content-Length: 409
0107: Content-Type: application/x-www-form-urlencoded
0138:
=> Send data, 409 bytes (0x199)
0000: ACCOUNT=myaccount&PASSWORD=mypassword&NUMBER=mymobilephone&MESSAGE=cs
0040: t1-5.conn-red-[6931010] cst1-5.conn red Fri Feb 7 16:04:45 GMT
0080: 2003 ERROR: Can't connect to 10.110.209.15 .PING 10.110.209.15
00c0: (10.110.209.15): 56 data bytes..--- 10.110.209.15 ping statistic
0100: s ---.1 packets transmitted, 0 packets received, 100% packet los
0140: s..Please see: http://bb-server/bb/html/cst1-5.conn.html.&ORIGIN
0180: =bbserver&CMD=SENDMESSAGE

-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld http://www.vasoftware.com
Received on 2003-02-07