[wp-trac] [WordPress Trac] #37820: wp_remote_get referrer not being sent correctly

WordPress Trac noreply at wordpress.org
Wed Oct 5 03:53:56 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:  has-patch upstream  |     Focuses:
--------------------------------+------------------------------
Changes (by dd32):

 * keywords:  has-patch => has-patch upstream


Comment:

 Small note, You can send a `Referer` header along with your
 `wp_remote_get()` which will cause cURL not to send the Referer.
 Unfortunately, the Streams handler will send a `Referer:` header anyway.

 This should be fixed upstream at
 https://github.com/rmccue/Requests/issues/232 - inputs and patches would
 be welcome there.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37820#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list