The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
2answers
36 views

creating form for wp_remote_post

i'm using code from the wordpress codex: (this is the generic version, my code is working though) $response = wp_remote_post( $url, array( 'method' => 'POST', 'timeout' => 45, '...
-1
votes
1answer
241 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
161 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
508 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
70 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
55 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. Nb:...
1
vote
1answer
493 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
229 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
1k 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
62 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
134 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
57 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
511 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 ...