The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
76 views

WP_Remote_Get feed from .php file

I have a bunch of wordpress sites which sit on different domains, and I want to track all the user data on one central site. I wrote a simple file for each wordpress site to display user counts in an ...
0
votes
0answers
46 views

wp_remote_get sslv3 alert handshake failure

I'm attempting to retrieve remote content with wp_remote_get but I'm getting the following error returned : 'sslv3 alert handshake failure'. I've tried using 'sslverify' => false in the args ...
0
votes
0answers
63 views

Is it possible to load an admin page inside a thickbox?

I'm currently trying to load a custom made admin page inside a thickbox. It's for creating new users with loads of extra custom data and none of the stuff I don't care about. Administrators can ...
1
vote
1answer
112 views

wp_remote_get() and javascript/noscript situation

I am using wp_remote_get() to get access to certain pages on the net. However, when I make a call using wp_remote_get(), the response I recieve is a webpage that contains the following lines of code: ...
0
votes
0answers
27 views

Should I use transients for these API call results?

I am consuming an API that gives me a list of people and their profiles. My initial idea was working perfectly fine when it's just the list of people because I was just saving the ids and names using ...
0
votes
0answers
55 views

Fetching data from other website in wordpress

I am developing a website in which I want that on clicking a push button named "Get date" the client get's to know the date. The data will be fetched from supremecourt of India's website...the data ...
0
votes
0answers
251 views

wp_remote_get() never fires

I am quite familiar with the wp_remote_get() function. However, this one is blowing my mind. Here is my code to call the url: // data to send in our API request $api_params = array( ...
0
votes
1answer
45 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
43 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 ...
3
votes
3answers
2k views

using wp_remote_get instead of file_get_contents [duplicate]

have run my theme through the Theme checker plugin and it seems upset about use of 'file_get_contents' to get a json url. I've found posts saying i should use wp_remote_get. I'm currently decoding the ...
0
votes
1answer
207 views

Use wp_remote_get to add image to media library

I'm using Embedly to make it easy for a client to add news to their website - basically, they just input a URL, and Embedly grabs the link's information, and I add it all to post meta for displaying ...
0
votes
0answers
463 views

How to use wp_remote_get in place of file_get_contents?

I am trying to implement this plugin( http://wp.tutsplus.com/tutorials/creative-coding/creating-a-simple-backuprestore-settings-feature/ ) with my theme. Everything's working great. but the problem is ...
1
vote
3answers
631 views

rewrite script to use wp_remote_get instead of file_get_contents_curl

I have a script that pulls the facebook likes via facebook graph and writes them in my DB. However it uses file_get_contents_curl for the request and this is causing problems, so I'd like to use the ...
2
votes
1answer
548 views

wp_remote_get returns an error for valid URL

I currently have the following snippet of php to fetch some HTML and render it in my theme(squash theme). <?php $response = wp_remote_get( ...
0
votes
2answers
194 views

how get number of twitter followers in wordpress

I used function to get twitter followers function twitter_count($twitter_user){ $count = get_transient('twitter_count'); if ($count !== false) return $count; $count = 0; ...
0
votes
1answer
377 views

@file_get_contents and wp_remote_get

$content = json_decode(@file_get_contents($query)); what correctly replacement for @file_get_contents in this string? if i just replace @file_get_contents for @wp_remote_get i get error Warning: ...
0
votes
1answer
207 views

calling admin-ajax.php from admin-ajax.php

I'm writing a plugin that calls the output of another plugin's ajax, which is set-up at wp_ajax_ I would have called the functions directly, but limitations in the plugin make that a non-option. To ...
1
vote
1answer
988 views

wp_remote_get vs. file_get_contents vs. cURL?

I need to fetch the contents of a remote file. Which is better for performance - wp_remote_get, file_get_contents, or cURL? How exactly does wp_remote_get work? Can you suppress errors, ex. ...
0
votes
1answer
605 views

wp_remote_get with Google Books API

Trying my hand at pulling some info from Google API, and having a bit of trouble. My code: $body = array( 'intitle' => 'Test', //Returns results where the text following this keyword is found ...
0
votes
2answers
398 views

AJAX request not routing through proxy

I've built a plugin that uses AJAX to post a URL to the URL2PNG API and bring back a screenshot into WordPress via wp_remote_get. It works beautifully in my development environment. In production, ...
1
vote
1answer
253 views

wp_remote_get vs. fetch_feed ? which is the better for performance?

I m trying to share my web site contents for other web sites using by external loop file or rss file. when i asked some questions about wp_remote_get function ; @Serkan suggest to me , using ...
0
votes
2answers
580 views

Issues with downloading a file with wp_remote_get()

I'm using wp_remote_get() to download a remote file with the following URL: ...
1
vote
1answer
350 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 ...
4
votes
1answer
969 views

wp_remote_get(), downloading and saving files

From what I can see wp_remote_get() saves remote file contents to memory. The files that I need to download are compressed in either ZIP or GZIP and within which will either be a CVS or XMl file ...
1
vote
4answers
2k 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); ...
0
votes
1answer
1k views

How to write txt file?

I have 2 functions about the wp_remote_get. I wanna write all data ( functions output ) into the txt file ? How to ? the functions; // facebook function hayransayisi(){ $fb_id = ...