[wp-hackers] wp_remote_request not telling me the 301'd URL

Dion Hulse (dd32) wordpress at dd32.id.au
Mon Feb 28 23:11:22 UTC 2011

2 separate requests will be 2 separate requests.
What's the use-case you're working on here?
Personally, I'd do a normal fetch, followed by a head if it was a
exceeded-redirects error if you want the body, otherwise, the url..
But i cant think of a case where you'd want one or the other..

On 1 March 2011 04:06, Scott Kingsley Clark <scott at skcdev.com> wrote:

> Not sure if anyone knows this, but does the page get loaded twice or is the
> second time getting loaded from some sort of cache? I'm specifically
> calling
> to the idea of using wp_remote_head on a URL to check for a redirect, and
> then using wp_remote_request on the same URL to get the content / etc.
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers

More information about the wp-hackers mailing list