curl / Mailing Lists / curl-users / Single Mail

curl-users

Re: Making two requests

From: David Colter <dolan2go_at_yahoo.com>
Date: Wed, 24 Oct 2018 09:08:08 -0400

Hello,

> On Oct 24, 2018, at 5:21 AM, Hacxx Under <hacxx20_at_gmail.com> wrote:
>
> One is a post and the second is a get. The problem is that they do not work.

> curl -d score=10 http://example.com/post.cgi <http://example.com/post.cgi> --next http://example.com/results.html <http://example.com/results.html>

Try turning the very helpful, verbose mode on, like:

curl -v -d score=10 http://example.com/post.cgi <http://example.com/post.cgi> --next http://example.com/results.html <http://example.com/results.html>

Two additional thoughts. You will need to:

        1. add --get to the first request, and
        2. specify the -d (data) with appropriate data in both requests.

Verbose mode output will help you debug and build the correct command.

David

-----------------------------------------------------------
Unsubscribe: https://cool.haxx.se/list/listinfo/curl-users
Etiquette: https://curl.haxx.se/mail/etiquette.html
Received on 2018-10-24