Operating System - Linux
1821981 Members
3168 Online
109638 Solutions
New Discussion юеВ

curl POST HTTPS Get Reply

 
Dave La Mar
Honored Contributor

curl POST HTTPS Get Reply

Just downloaded curl for 11.i.
I am stumbling through the usage.
My scenario-
I must HTTP POST to a url and receive a reply.
When I used [from the command line] -
curl -d "userid=XXXXXXX&password=XXXXXXX&command=requestinfo" https://etc
This appeared to work fine, except I did not receive a reply with the info.

Being newer than new at this, hopefully I am missing something simple.

Any suggestions in getting the reply?

TIA

-dl
"I'm not dumb. I just have a command of thoroughly useless information."
3 REPLIES 3
spex
Honored Contributor

Re: curl POST HTTPS Get Reply

Hi Dave,

Make sure that your syntax is correct and that the data is properly encoded. For example, you must translate the space character to %20 before you post. Also make sure you use an SSL certificate ('curl -E ...') if the HTTPS server requires one.

PCS
Dave La Mar
Honored Contributor

Re: curl POST HTTPS Get Reply

Syntax is correct, except for recieving the reply, I believe.
No cert is required.
I know the post worked as I have evidence supporting such.
The problem is the reply did not return.

Thanks for the input SPEX.

-dl
"I'm not dumb. I just have a command of thoroughly useless information."
Dave La Mar
Honored Contributor

Re: curl POST HTTPS Get Reply

Sorry folks. I'm closing this due to lack of respnse/solution.
I am now forced to use a java routine for the https post and receive reply.

Java was my least desired solution.

-dl
"I'm not dumb. I just have a command of thoroughly useless information."