The tag has no usage guidance.

learn more… | top users | synonyms

-1
votes
0answers
13 views

Getting the response returned through a script

I'm trying to create a custom payment gateway in Woocommerce. I should send the data in the order from to another website, get the response, and then act according to that response. I want to use ...
-1
votes
1answer
79 views

Change the headers content type with wp_remote_post

Working with the remote API requests with WordPress. I have used wp_remote_post() function to request the HTTP data but I am unable to update the headers Content-type I am using the following code ...
0
votes
1answer
116 views

How to add Request header in WordPress remote api calls

Hey am new to WP development, can any one tell me how to add request headers in wp_remote_get() or wp_remote_post() remote api calls. I tried the following but didnt work $response = ...
2
votes
1answer
357 views

How can I use CURLOPT_USERPWD in wp_remote_post?

I'm trying to setup a proper cURL call in WordPress so am using wp_remote_post(). However, I'm having trouble authenticating the user via wp_remote_post(). Any idea how to convert the following to be ...
0
votes
0answers
60 views

UTF-8 BOM arriving from wp_send_json()

Not sure if this just started in WP 4.3 I'm getting a UTF-8 BOM mark at the beginning of the json string sent by wp_send_json(). I'm making a wp_remote_post call to an ajax action, The action ...
0
votes
1answer
44 views

Post to a server writen in Hapijs from wordpress using wp_remote_post

I'm trying to post to a server written in Hapijs from wordpress using wp_remote_post. I'm getting connection refused and I can't figure out what is wrong. The server is on port 8080. ...
0
votes
0answers
101 views

log xml HTTP response - used wp_remote_post

what is the proper way to store a response in a log file (somewhere in the instance) when retrieving from wp_remote_post, $response? I am looking to print each response to a log file, but cannot seem ...
0
votes
1answer
341 views

HTTP request on localhost failing

I have a Wordpress instance on my development box with the WP REST API plugin installed. I am attempting to create my own plugin to use wp_remote_get() to communicate with my own custom PHP ...
0
votes
0answers
216 views

How to retrieve data sent via wp_remote_post() from another WordPress site?

So, I am using wp_remote_post() on site A to send data to my server B, then use this data to create a new blog post each time request is sent. Here is the scenario: 1- Site A: send data via ...
1
vote
2answers
891 views

Error timed out with succesfull wp_remote_post

What I'm trying to do: Passing POST data by using wp_remote_post. foreach ( $articles as $article_id ) { $postarray = array( 'method' => 'POST', 'timeout' => 5, ...
0
votes
0answers
2k views

WordPress wp_remote_post() sending informaiton to Redmine REST API

I am having a problem using WordPress's wp_remote_post() function with Redmine's REST API. The main issue is that when I attempt to post, i get a 403 - forbidden return. This is the code that i'm ...
0
votes
0answers
60 views

wp_remote_post in uninstall.php

I was trying to automatically deactivate the license in my plugins on uninstall, and it is not working. The only thing that it does, is a remote post request, and given the fact that when not during ...
0
votes
1answer
129 views

http_response_timeout filter not working

I am writing a Wordpress plugin that makes calls to external sites. I want to raise the timeout for all wp_remote_* calls, so I added the following to the __construct function of my plugin: ...
0
votes
0answers
55 views

saving file to external server vip

I have a handwritten script that writes a text file locally in one of my Wordpress pages, but now I need it to read and write to a remote server that is password protected and accessible only through ...
2
votes
1answer
1k views

Retrieving Google Plus share count with wp_remote_post

So I've spent most of my morning working on my website's customized social share buttons. Reading out Twitter and Facebook shares were no problem, but Google Plus is a real challenge, as they don't ...
1
vote
1answer
469 views

On Plugin Activation, How Do I Check for Proper Transport Mechanism?

For a plugin that communicates with somewhere else, I hear we're supposed to use wp_remote_post and wp_remote_get instead of PHP's Curl library. Okay, but is there a fast and proper way on plugin ...
2
votes
1answer
1k views

Remote login with only the username not working

I'm writing a module for remote login into another WP site via my plugin's admin. This is the code I'm using on the sender side: <?php add_action('init', 'connect'); function connect() { //I ...