The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
2 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
0answers
6 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
15 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
0answers
76 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
110 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 ...
0
votes
1answer
523 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
872 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
53 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
82 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
48 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 ...
0
votes
2answers
400 views

wp_remote_post tp paypal nvp api timeout, while curl with the same parameters work

I'm using wordpress Http Api to call this worked perfectly for over two years and just recently broke down. This is the code: $nvpreq = ...
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
405 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 ...