The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
1answer
644 views

How to return HTTP 404 when no search results found?

When user search and there is no results found wordpress still return 200 OK. I want to change it to 404 Not Found. Is it possible to return 404 Not Found header in search.php? If yes, how to do ...
2
votes
1answer
742 views

problem using WP_Http with paypal nvp api

trying to convert a plugin I wrote to use wp_http instead of Curl (so it'll work on servers without curl) the plugin posts to paypal nvp api and gets back an encrypted button when I try to use the ...
2
votes
2answers
1k views

How to get title tag of an external page with http api?

What is the best method to retrieve the title tag of an external page using the http api? The snippet below will get the body but I can't find the right documentation about how to just get the tag. ...
2
votes
2answers
198 views

Get the final destination after WP_Http redirects (WordPress)

I'm doing some requests to an API via WordPress, and the API uses SSL connections if they're turned on in the API settings. I'd like to determine whether SSL is turned on or off without having to ask ...
1
vote
1answer
905 views

Getting soft 404 errors (200 status) when caching plugins are enabled

I have a blog running the latest stable version of WordPress on a dedicated virtual server with the following situation. (Replace [caching plugin] with W3 Total Cache, Hyper Cache, or Quick Cache, as ...
0
votes
1answer
841 views

Wp Remote get with manual redirect

I set add_filter( 'http_request_redirection_count', array($instance,'SetDirectionCount')); to 0 I try to get 'http://boards.ign.com/The_Vestibule/b5296/' or ...
1
vote
1answer
555 views

Using wp-cron in backpress - problems with wp_remote_post, fsockopen error

I'm working on a BackPress project where I need to schedule cron tasks. The cron_uri for BP is stored in options, rather than hardcoded as it is in WP core. I've tried setting the option to ...
2
votes
2answers
666 views

How do I troubleshoot responses with WP HTTP API?

I make a GET call to API, call is supposed to return no data: browser (and sniffer) give me 200-OK response with null text as body; wp_remote_get() gives me 200-OK response with string of binary ...