[wp-trac] [WordPress Trac] #37820: wp_remote_get referrer not being sent correctly
WordPress Trac
noreply at wordpress.org
Thu Aug 25 08:55:01 UTC 2016
#37820: wp_remote_get referrer not being sent correctly
--------------------------+------------------------------
Reporter: schrapel | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version: 4.6
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Comment (by schrapel):
Why would the CURLOPT_URL be the same as the CURLOPT_REFERER? If I
manually set CURLOPT_REFERER to the URL of the domain I am sending from
then I get the response I desire.
The code is below but I obviously removed our API key. I'm going to try
get another API key for you that I can share here
{{{#!php
<?php
wp_remote_get('http://api.embed.ly/1/feature?feature=oembed&key=***')
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37820#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list