S
S
Steve2021-04-06 15:58:32
PHP
Steve, 2021-04-06 15:58:32

Console application in PHP. A very simple question?

I am writing a console application using curl.

#!/usr/bin/php
<?php

system('curl -X POST -d "k='.$argv[1].'&m='.$argv[2].'" http://my.site.loc/');


The output in the console is not encouraging. Is it possible to display the answer without all these "statuses" and "percentages"?
./myapp UAPI.PytJade3f3eced962 'hello, how are you?'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    77  100    31  100    46  15500  23000 --:--:-- --:--:-- --:--:-- 38500
"message: hello, how are you?"

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
nokimaro, 2021-04-06
@CenterJoin

curl --silent -X POST и тд ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question