tiger_groove
tiger_groove

Reputation: 1016

HTTP Request: Is there a way to do a GET within a GET in linux

I am attempting to do a http request within another http request. Is there a way to do this via command line in linux?

wget http://request another wget http://request

Upvotes: 0

Views: 1471

Answers (1)

Barmar
Barmar

Reputation: 781200

Use $() to substute the output of a command:

wget http://someURL?param="$(wget -O - http://otherURL)"

The -O - option tells wget to write the output to standard output instead of a file.

Upvotes: 2

Related Questions