Can any one help me with curl for table?

I am a newcomer to the curl command, and since my country has been hit by a serious haze lately, i am trying to update myself for the API since i have some seniors at home and I'd like to keep them alert. The site I receive has been indexed from

However, curl the site did not give me any value on the table. I'm trying to extract the latest time data from a city (for example, Rompin).

I'm using a jailbroken iOS if it's relevant. Could someone help me with that? Much appreciated!

node.js – php upload via curl nodejs

Good night, I'm 2 days trying to send php curl data to nodejs
when I curl it works …
but I needed it like that …
1 php try:

       $this->ch = curl_init();
     curl_setopt($this->ch,CURLOPT_URL, $url);

  curl_setopt($this->ch,CURLOPT_POST, 1);
  curl_setopt($this->ch,CURLOPT_POSTFIELDS, $data);
  curl_setopt($this->ch, CURLOPT_FOLLOWLOCATION, true);
  curl_setopt($this->ch, CURLOPT_RETURNTRANSFER, true);
  curl_setopt($this->ch, CURLOPT_SSL_VERIFYPEER, false);
  curl_setopt($this->ch, CURLOPT_POST, true);

  $result = curl_exec($this->ch);
 return curl_close($this->ch);

try 2:

    $ch = curl_init();
  curl_setopt($ch,CURLOPT_URL, $url);
     curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
//curl_setopt($ch, CURLOPT_PORT, 2403);   //<----- Commented out !
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $data);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(    //<--- Added this code block
        'Content-Type: application/json',
        'Content-Length: ' . strlen($data))
$data = curl_exec($ch)|

In nodejs, the publishing method does not bring any feedback that I've tried a bit of everything and I lack ideas on how to do it or what I'm doing wrong. kkk wanted to send an xml by mail so nodejs could handle it, but not one. The basic expedition is under way, I feel frustrated ... 4 days of problems and I barely crawl ...'/teste', function (req, res,next) {

//   console.log(util.inspect(req));
//console.log(util.inspect(req, false, null, true /* enable colors */));;

  console.log('receiving data ...');
    console.log('body is ',req.body);


This method, I can get the items and returns are ok:

app.get('/agencia2', function (req, res,next) {

//  console.log(req.params);
//  console.log(req.body);

   res.send("quase teste"); 
}); – How to get a readable form of curl with a transaction?

It was just a terminal problem that I used on a mac.

Add | python -m json.tool at the command goes around, as described here.

The exit is now:

bitcoin@raspberrypi ~ $ curl | python -m json.tool
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3571    0  3571    0     0  10043      0 --:--:-- --:--:-- --:--:-- 10087
    "unspent_outputs": [
            "confirmations": 314772,
            "script": "76a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac",
            "tx_hash": "f2c245c38672a5d8fba5a5caa44dcef277a52e916a0603272f91286f2b052706",
            "tx_hash_big_endian": "0627052b6f28912f2703066a912ea577f2ce4da4caa5a5fbd8a57286c345c2f2",
            "tx_index": 47854970,
            "tx_output_n": 1,
            "value": 8450000,
            "value_hex": "0080efd0"
            "confirmations": 259155,
            "script": "76a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac",
            "tx_hash": "0365fdc169b964ea5ad3219e12747e9478418fdc8abed2f5fe6d0205c96def29",
            "tx_hash_big_endian": "29ef6dc905026dfef5d2be8adc8f4178947e74129e21d35aea64b969c1fd6503",
            "tx_index": 71083209,
            "tx_output_n": 0,
            "value": 100000,
            "value_hex": "0186a0"
            "confirmations": 251314,
            "script": "76a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac",
            "tx_hash": "d9717f774daab8d3dd470853204394c82e3c01097479575d6d2ee97d7b3bdfa1",
            "tx_hash_big_endian": "a1df3b7b7de92e6d5d57797409013c2ec8944320530847ddd3b8aa4d777f71d9",
            "tx_index": 75974855,
            "tx_output_n": 0,
            "value": 1000000,
            "value_hex": "0f4240"
            "confirmations": 245427,
            "script": "76a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac",
            "tx_hash": "3f1df69df90d097981ca9c97ad8b6a32daed345565a433f8c8e472b2dab2ac79",
            "tx_hash_big_endian": "79acb2dab272e4c8f833a4655534edda326a8bad979cca8179090df99df61d3f",
            "tx_index": 79887883,
            "tx_output_n": 1,
            "value": 719787,
            "value_hex": "0afbab"
            "confirmations": 165236,
            "script": "76a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac",
            "tx_hash": "417bdb6f5db3e830407f94d1a82d1667e738b19da3679b7263ebfb913394efdd",
            "tx_hash_big_endian": "ddef943391fbeb63729b67a39db138e767162da8d1947f4030e8b35d6fdb7b41",
            "tx_index": 170905487,
            "tx_output_n": 0,
            "value": 10000,
            "value_hex": "2710"
            "confirmations": 162698,
            "script": "76a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac",
            "tx_hash": "d049d6039f9d1cb2625bac294d7465b4b1077bd5bc0e30e01e02b184db524c1f",
            "tx_hash_big_endian": "1f4c52db84b1021ee0300ebcd57b07b1b465744d29ac5b62b21c9d9f03d649d0",
            "tx_index": 174630347,
            "tx_output_n": 0,
            "value": 11100,
            "value_hex": "2b5c"
            "confirmations": 161792,
            "script": "76a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac",
            "tx_hash": "b8a6470c7a38d0983effed00a3f75c74ba371da1387352f35d1df155851ea8d1",
            "tx_hash_big_endian": "d1a81e8555f11d5df3527338a11d37ba745cf7a300edff3e98d0387a0c47a6b8",
            "tx_index": 175949432,
            "tx_output_n": 0,
            "value": 10000,
            "value_hex": "2710"
            "confirmations": 161783,
            "script": "76a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac",
            "tx_hash": "a2b9570e26e3991fc999c42dc8c6eea7b06514b61814da1a71b56c6ba2ae651c",
            "tx_hash_big_endian": "1c65aea26b6cb5711ada1418b61465b0a7eec6c82dc499c91f99e3260e57b9a2",
            "tx_index": 175955161,
            "tx_output_n": 0,
            "value": 10000,
            "value_hex": "2710"
            "confirmations": 161783,
            "script": "76a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac",
            "tx_hash": "05230cb8cd8c6a3788ed41433dfdd68a1a608cc8feb3bc1c29d97ce84bec070e",
            "tx_hash_big_endian": "0e07ec4be87cd9291cbcb3fec88c601a8ad6fd3d4341ed88376a8ccdb80c2305",
            "tx_index": 175955664,
            "tx_output_n": 0,
            "value": 10000,
            "value_hex": "2710"
            "confirmations": 76598,
            "script": "76a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac",
            "tx_hash": "bd345c2bdbb8c17a0c66a8579ea701830e8248ba21b2d73a5dca21d8e9175fee",
            "tx_hash_big_endian": "ee5f17e9d821ca5d3ad7b221ba48820e8301a79e57a8660c7ac1b8db2b5c34bd",
            "tx_index": 338789479,
            "tx_output_n": 1,
            "value": 3020,
            "value_hex": "0bcc"
            "confirmations": 44566,
            "script": "76a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac",
            "tx_hash": "892275c430610334994cc5836436515057284cc4572775487c1b06a1b49c5ab4",
            "tx_hash_big_endian": "b45a9cb4a1061b7c48752757c44c28575051366483c54c9934036130c4752289",
            "tx_index": 384311717,
            "tx_output_n": 1,
            "value": 6236,
            "value_hex": "185c"

magento2 – Magento 2: curl Can not connect to the server.

I am a neophyte of Magento / curl and I need the help of the following code, which returns the message "Unable to connect to the server", but when I fill the equivalent in a form and I click on Submit , I get the answer "Hello from Ostendo", is there a parameter I miss or I do it wrong. (I've replaced the actual IP address by for security.

// Get cURL resource
$curl = curl_init();
// Set some options
curl_setopt_array($curl, (
    CURLOPT_URL => 'http://:85/?script=ConnectionTest&test=fred',
        'Content-Type' => 'application/x-www-form-urlencoded',
        'User-Agent' => 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)'
// Send the request & save response to $resp
$resp = curl_exec($curl);
if ($errno = curl_errno($curl)) {
    $error_msg = curl_error($curl);
    $error_message = curl_strerror($errno);
    echo "Error detected, details below
"; $info = curl_getinfo($curl); echo 'Took ', $info('total_time'), ' seconds to send a request to ', $info('url'), "
"; echo 'content_type=', $info('content_type'), "
"; echo 'http_code=', $info('http_code'), "
"; unset($info); } // Close request to clear up some resources curl_close($curl); unset($curl); echo 'Response = ', $resp; unset($resp);

But the following form returns "Hello from Ostendo"

Any help would be greatly appreciated.

redirect – How can we add a header in the redirect URL, just like adding a header in a curl?

I'm trying to call an external URL from a Drupal environment with the help of RedirectResponse. In this request, I need to add a custom header.
I tried it using cURL and I got the custom header in the answer to the request.

    $ch = curl_init();
    $headers = array(
    'Accept: application/json',
    'Content-Type: application/json',
     'CUSTOM_HEADER: Value',
    curl_setopt($ch, CURLOPT_URL, SOME_RANDOM_URL);
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $body = '{}';
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET"); 
    curl_setopt($ch, CURLOPT_POSTFIELDS,$body);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_TIMEOUT, 30);

I've tried the same thing using RedirectResponsedo another task. But that did not go well. I do not know that it is the right method. But that's what I tried.

$response = new RedirectResponse($url,$status,$headers);

When I did that, this custom header was entered in the response headers. But I need it in the header of the query. Is it possible?. If possible, how do you please help

Pass two concatenated variables in a Json object of a POST Curl in PHP

I'm sending this request on the json POST of Curl with PHP.

Here is post json:

"Payment" => (
    "Type" => "Vendor",
    "Amount" => 100,
    "CreditCard" => (
    "CardNumber" =>  "$card",
    "ExpirationDate" =>   "$dataexp"     


The default value for receipt on the ExpirationDate API is: 20/2021 XX / XXXX.

In "ExperationDate" => "", I want to concatenate the two variables ($ mes and $ year) with the / (slash). $ my + / + $ year or more on a single variable.
When I submit the ExpirationDate content, it must contain 12/2021 XX / XXXX.

They come from other script variables: $ Mes and $ year.

Returns this template by sending ExperationData to the publication API.

I have tried something like:

"ExperationDate" => "'.$mes.'/'.$ano.'"

"ExperationDate" => "$mes/$ano.'"

"ExperationDate" => "$mes./.$ano.'"

None of the 3 possibilities gave it to me. $ Mes and $ year are not concatenated with /. So, the default value, for example 10/2021, was not passed correctly in the POST object in json ExperationDate => ""

I have error in ExperationDate in api, the error is exactly at the point of two more variables / concatenated in ExperationDate.

Could someone help me to do this motive that I have shown?
Would it be possible to pass two variables and concatenated in a json object of the post?

thank you so much

github – RPC failed; curl 56 GnuTLS recv error (-9): error decoding the received TLS packet

I am new to this interest. I'm trying to clone a github repository into pi raspberry and its rejection error as cloning in 'Porcupine'. …
remote: Enumeration of objects: 150, done.
remote: Counting objects: 100% (150/150), done.
remote: Compression of objects: 100% (112/112), done.
error: RPC failed; curl 56 GnuTLS recv error (-9): error while decoding the received TLS packet.
fatal: the remote end has hung up unexpectedly
fatal: early EOF
fatal: failure of the index-pack
I have tried all the solutions that have been given in this site. None of them help. As I have been trying for 4 days but no luck. Council Pls.
Thank you

json – Having problems with Curl and WJT

I'm trying to use curl to get a WJT / Bearer token. But I continue to have an error of analysis. I've looked at my syntax and some others, but I thought I might try this place. My command line is: TOKEN=(curl -s -X POST -H 'Accept: application/json' -H 'Accept: application/json' --data "{"username":"username","password":"password","rememberMe":false}" | jq -r '.id_token')
L & # 39; error: Analysis error: Invalid numeric literal line, column 1 10.
I've done some touch ups with the command and there seems to be a problem with the .id_token. Is there an alternative that I could use or a workaround?

CURL applescript with authentication fails

question: I need a working method to use in applescript to get the right source of the page, WITHOUT loading the page

example of link:

result: bad html, he speaks of authentication. I've tried all the methods described here: but curl always fails by returning a wrong body as in the picture below.

could someone help me?

enter the description of the image here

Logging – I use curl-logger with RestAssured and Java. I want to save curl requests to a text file or log file.

.I get this problem by generating curl commands on Windows: – user "ashish: a26B) n ^ A?"% "6Wf! AsJw, This"! AsJw creates a problem. I add the complete application under curl " partner_id = 81211 & iv = ExtLVWGlIkfSC32qOf5DUw"% "253D"% "253D"% "250A & token = 9ydAWTxZ7qb9hXqKBELZ8MU0pN8IsSF53Bgu0tGe4BeYIpqWp"% "25252FYr6L5wDidRqWWTvvWFS9DPXtqd"% "25250A5a8cc9vOovxnUGyCykVERBoEQd7LtuIVKIPNNeCDdfHsGhRgj"% "25252B4ol8B9XiKB"% "25252F5gc8eXy3Z"% "25252BUq1ka"% "25250AmTzKmCwR9WGXgKkTAw1rJbgxPThgkhmSwK4g08lt"% "25252B4j5FUt2sI1r9cizNfyJnw"% "25253D"% "25253D"% "25250A" –cookie "LSE5Xgebmy-_8Po7xHRyAlTVqKVtHI8D9lkYWu8VkUrY1gkOqMt1WG9XfMB1pRwpxb-AR5W2ApPl4y6aVa4TrrnWdLQLWhe7PybJuIZHmPipzh96kBrkMfH-gZ17hKChY8mfQbUtkND6EOMjiiGMhQ8Im3OuKbKDa6tM7gKCzHA = null" –header "Content-Type: application / json; charset = UTF-8 "- header" Accept: /"–header" Host: "–header" Connection: Keep-Alive "–header" User Agent: Apache-HttpClient / 4.5.3 (Java / 11.0.1) "- – user "ashish: a26B) n ^ A?"% "6Wf! AsJw "–compressed –insecure –verbose
This is what is being printed. But if I delete! AsJw Then the query works well. This value is generated by the system, so can you help me in this regard? Do not hesitate to get more information