wp remote get – wp_remote_get – error cURL 28 – only on the same domain

I use on my site wp_remote_get to retrieve data from mydomain.com/wp-json/wp/v2/pages/75

When I run it on my local host, it works fine, but after sending to the production server (mydomain.com), a message appears:
"CURL Error 28: The operation expired after 5000 milliseconds with 0 bytes received"
+ VPS starts to go crazy (100% CPU and memory usage).

It can not recover data from the same domain. When I changed the URL to a random REST mockup, it works again.

How can I get WP REST data on the same domain?

(Info VPS: debian 9, php 7.3, curl 7.52.1 and last wordpress 5.2.2)

Thanks in advance!

php – WordPress loop through the key meta that is a table? and how to curl several paintings

How do i get a loop of publications by meta-values ‚Äč‚Äčthat record in a meta_key that is a table like this

$ sharedHosting_plans_fields = Tableau
                                        [0] => Table
                                                [plan_name] => name 1
                                                [plan_price] => 1
                                                [theType] => yesPaid
                                                [plan_space] => Unlimited

                                        [1] => Table
                                                [plan_name] => name 2
                                                [plan_price] => 3
                                                [theType] => yesFree
                                                [plan_space] => 5000

                                        [2] => Table
                                                [plan_name] => name2
                                                [plan_price] => 5
                                                [theType] => yesPaid
                                                [plan_space] => Unlimited


And I used that

                    & # 39; meta_key & # 39; => & # 39; sharedHosting_plans_fields & # 39;
& # 39; orderby & # 39; => & # 39; meta_value_num meta_value & # 39;

but without effect!

2-If I want to get messages by checking several meta keys like that

                board (
& # 39; key & # 39; => & # 39; plan_type2 & # 39;
board (
& # 39; key & # 39; => & # 39; plan_type3 & # 39;
board (
& # 39; key & # 39; => & # 39; plan_type4 & # 39;
board (
& # 39; key & # 39; => & # 39; plan_type5 & # 39;

How can I shorten this code by for loop or anything else?

I tried to use

                & # 39; meta_key & # 39; => array (& # 39; sharedHosting_plans_fields & # 39;),
& # 39; orderby & # 39; => & # 39; meta_value_num meta_value & # 39;

instead of

                & # 39; meta_key & # 39; => & # 39; sharedHosting_plans_fields & # 39;
& # 39; orderby & # 39; => & # 39; meta_value_num meta_value & # 39;

but no luck

seo – I use curl to send a sitemap but I do not get any thoughts in the web portal

TWO things confuse me how should I submit my sitemap.

It is understood that a site map can be submitted with cURL. https://support.google.com/webmasters/answer/183668?hl=fr

However, whenever the submission of the site map does not match the web portal. The timestamp in the web portal only indicates the time at which I submit the site map via the web portal.

Why are they different? Does submission via curl work?

I found that Google was only analyzing my website right after the first site plan submission. I update my site and sitemap regularly, and hope Google can explore my site. However, it seems that Google never comes back.

What is the problem with these?

8 – How can I purge a specific URL of the varnish cache without making a curl request?

I programmatically update images and keep the same file name. When I do it, I empty the image styles for the image, but I am faced with a problem in which my image styles are not refreshed because the old style of D & D Image is loaded from varnish when the regeneration attempt is made. I've read (in a few places, including this associated Drupal answer, how can I clear the Varnish cache?) That I can clear the cache with a curl query:

curl -X PURGE -H "Host: domain.com"

How to use an existing method in the Purge or Acquia Purge modules to empty the cache of a given URL, especially an image style URL?

Note: I've seen the module purge_queuer_url, but it's not a viable solution for me.

bitcoind connection refused error with curl

my bitcoin.conf:

server = 1
rpcauth = username: e2aa83d74a55b7addfe070367546e72d $ 953dda2b7e2d5a151a7ef0e82ed50a734bf4c4ac55289fede8bd340489d5af0f
rpcallowip = address
datadir = / mnt / volume_fra1_03 /

my options side cliend:

BITCOIND_USER = myusername
BITCOIND_PASSWORD = mysecretpassword

everything is correct but I get a connection error refused.
on the 8332 server is open and bitcoind listen.
bitcoin-cli getblockchaininfo works.
bur, i'm trying to connect remotely, login error denied.

how to use curl in a Mac terminal

I want to download

I've tried using https://www.metoc.navy.mil/jtwc/products/best-tracks/[1980-2015]/[1980-2015]s-bwp / bwp[1980-2015].Zip *: French
but there are 46556 possibilities
I just want 36 possibilities !!!

linux – Centos 7 CURL issuer certificate invalid

Use this CURL syntax below

curl --header "Content type: application / json" - POST request --data> {"userID": "***", "security code": "***", "token": "***"} & # 39; https: // 1234 / hhh / AAA / bbb

Produce this error

curl: (60) The issuer certificate is invalid. More details here:

curl performs the SSL certificate verification by default, using a
"set" of public keys of the Certification Authority (CA). If the
the default file is not adequate, you can specify another file
using the –cacert option. If this HTTPS server uses a certificate
signed by a certification authority represented in the bundle, the certificate
the verification probably failed because of a problem with the certificate
(It may have expired or the name may not match the domain name in
l & # 39; URL). If you want to disable the verification of the curl check
certificate, use the -k option (or –insecure)

I've tried this method

curl https://curl.haxx.se/ca/cacert.pem -o /etc/pki/ca-trust/source/anchors/ca-bundle.crt


It still does not work. I do not want to use -k option, simply workaround for unsecured connection. Does any one face the same problem? Share it please. Thank you

On the environment Centos 7

WordPress does not detect curl – Ask Ubuntu

I have WordPress installed on Ubuntu 18.04.2 LTS.
My version Curl is curl 7.58.0

When I activate the PayPal Checkout WooCommerce gateway, an error message appears.
"WooCommerce Gateway PayPal Checkout requires the installation of cURL on your server".

Any help on how can I get woocommerce to detect curl?

protocol – Curl json-rpc to network to learn?

I'm trying to understand bitcoin CPP Peer-to-peer protocol to implement SPV on a Web application that needs to receive encrypted payments.

The problem is that in the examples I've found, the examples are for RPC queries addressed to a complete node that I'm supposed to have, but I want to query other nodes (nodes for which I do not have a node). do not have user: password).

As far as I know, bitcoinj and full portfolios connect to the network, send them requests without a user: well, but I have not found out how these queries are built, or how to test them and try them out. curl help to learn more about how it works.

Is there any API documentation I can consult and a list of nodes I can query?

In addition, I understand that to establish a connection, I should send the version request, but curl I do not have a "version".

I found this documentation on the protocol, but I found no way to test it in simple terms (like curl), to find out what is sent-received.

I want to understand the queries I can perform using this protocol without running a complete node.

virtualmin – Failed to update: download failed. CURL error 6: Unable to resolve the host:

I get the error message "Failed to update: download failed cURL Error 6: Unable to resolve host:" on WordPress on my server vps … I've got it also noticed in other applications.

As a result, the WordPress network no longer allows the automated installation of plug-ins, and I think that their update does not work either.

What does this usually mean? I have googled however the answers that I have found seem almost always to say, check with your web host. So with that in mind, I am convinced that it is a configuration problem that has occurred on my vps (maybe as a result of an update or a corruption or d & # 39; 39, a security setting that I may have changed)

I run the virtualmin control panel over the operating system. This forum seems to be a better place to get answers than the virtual one.

As a general rule, what problem-solving solutions should I try to resolve this error on a Debian system?