How to send multiline data to curl from a script?
Karl Auer
kauer at biplane.com.au
Sat Sep 4 00:16:07 UTC 2021
On Fri, 2021-09-03 at 18:33 +0200, Bo Berglund wrote:
> When the processing is done and the user entered items have been
> extracted I now want to send the data via a call to a php script file
> on *another* webserver for final handling like storage on a private
> database etc.
You could build a curl command line and run it from PHP via system(),
exec(), shell_exec(), passthru() or even proc_open()/popen().
Alternatively, google "send data with post in php" or similar - I'm no
PHP guy, so can't help further with that, but I found lots of very
plausible looking ideas.
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
GPG fingerprint: 61A0 99A9 8823 3A75 871E 5D90 BADB B237 260C 9C58
Old fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
More information about the ubuntu-users
mailing list