The http-api tag has no wiki summary.
1
vote
0answers
47 views
Connect external web app to wordpress
We have a web app that will allow users to edit their videos, add intro/outro/watermark. Once the user already done on their video. We need to provide an option to post/syndicate their video as a ...
2
votes
2answers
75 views
Is it possible to process $_POST / inbound http request in way to automatically create Wordpress post?
I like to learn some of WP automation. The WP get inbound http request to site url and the question is how to create a publication based on post (or get) data structure? How can maintain ...
2
votes
1answer
140 views
Hook into WordPress update?
I'd like to know if there's any way to hook into WordPress update process and send $_POST variable to update server?
I'm delivering plugin/theme updates from private server and I hook into this:
...
1
vote
1answer
273 views
How to use the HTTP API with a Proxy?
If I want to route a HTTP request through a local (alias: on the current server) Proxy, how would I go around this?
The allowed Proxy settings for the wp-config.php are the following:
# HTTP Proxies
...
5
votes
3answers
438 views
Filter any HTTP request URI?
I want to filter any HTTP request URI done through the HTTP API.
Use cases:
The WordPress update check goes to http://api.wordpress.org/core/version-check/1.6/, but ...
4
votes
1answer
133 views
How to use WordPress HTTP API to download file from remote location
So this PHP code works for me:
$ch = curl_init( TCS_CPDF_REMOTE_ZIP );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
$data = curl_exec( $ch );
curl_close( $ch );
...
2
votes
1answer
625 views
API JSON Data in WordPress
On the Google developer API page, it talks briefly on retrieving a dynamic list of fonts using JSON/JavaScript.
I was wondering how would I be able to pull the web fonts API into my Wordpress theme ...
3
votes
2answers
84 views
WP_Http_Cookie destroys cookie value through urldecode()
Background: Working on a Widget that uses a remote API using wp_remote_post to log into the service, once logged in storing the cookies received for the second request to query data with ...
-1
votes
1answer
180 views
Create plugin/function to catch XML-data via Shortcode
I need to display data from an XML-file inside Wordpress posts, and I want to use shortcodes to do it.
I have this XML-file witch I need to get the data from;
...
1
vote
1answer
70 views
Inconsistent server code response using HTTP API
I'm using Wordpress http api to get a server response code from youtube api so I check the validity of a video. I do this in a function from my functions.php which processes my post form where I ...
3
votes
1answer
461 views
parse XML from URL (via SOAP)
I am attempting to build out a dashboard widget that will perform a validation check on a site RSS feed using the W3 Validator. Their API docs (http://feed2.w3.org/docs/soap.html) provide the method. ...
1
vote
1answer
552 views
POST to a REST API from a wordpress form
I dont want to use a REST API to publish to wordpress.
I want to create a form on a wordpress page which will send a POST to an external REST API. Users will put in their information, and perhaps ...
0
votes
2answers
139 views
Behind-the-scenes HTTP Request?
I'm trying to add a line to my functions.php that does a behind-the-scenes HTTP request submitting some user information to a mailing list URL I have. I'm trying to test the code at the moment, but ...
1
vote
4answers
620 views
using wp_remote_get to retrieve own url on local host
I have a website in local development at test:8888 and I am trying to get the following to work in my functions.php file.
$response = wp_remote_get( 'test:8888/?p=1' );
print_r($response);
...
2
votes
2answers
277 views
What is the official way to consume the Wordpress API? (api.wordpress.org)
Was wondering if anyone knows here if the API at api.wordpress.org is free to use without keys. I haven't really found any information about key registration.
I'd like to use it to make a few ...
2
votes
2answers
488 views
wp_remote_post with ssl:// protocol
$response = wp_remote_post( 'ssl://securesite.com', array(
'method' => 'POST',
'body' => $string, // variable is set
'timeout' => apply_filters( ...
9
votes
2answers
303 views
How to control accept encoding on HTTP API requests?
Related to this ticket about issues with inflating data.
So far it had been suggested by API's support to request gzip instead of deflate.
However I cannot find a way to override WP settings that ...
2
votes
1answer
868 views
Posting an XML request using HTTP API
I'm trying to work with an API that expects an XML string in the body of the post. Additionally, the docs for the API specify:
Please post with mime-type text/xml with the XML in the body of the ...
2
votes
1answer
219 views
Storing an XML Response (Transient)?
Haven't worked much with XML so I'm hitting a bit of a wall:
function getapi()
{
$api_response = wp_remote_get( "http://example.com/getXML" );
$data = wp_remote_retrieve_body( ...
1
vote
3answers
215 views
Does WordPress's HTTP API use any caching?
I'm working on a plugin to will retrieve data from a remote server and display it on the Dashboard. To do this, I'll be using the WordPress HTTP API but I'm not seeing any information on the HTTP API ...
1
vote
1answer
98 views
How deactivate the http-api
give it an tipp or solution for deactivate the method request() in class WP_Http_Streams?
I use WordPress also on offline-servers and have wp_debug true for development and tests. But i have many ...