Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#2441 closed New feature (fixed)

Piwik_Http: custom headers, and file_get_contents

Reported by: vipsoft Owned by: vipsoft
Priority: normal Milestone: 1.5 - Piwik 1.5
Component: Core Keywords:
Cc: Sensitive: no

Description (last modified by vipsoft)

Piwik_Http currently sends the client's IP in a spoofed Referer header. We should use X-Forwarded-For.

Piwik_Http currently sets the User-Agent according to the plugin. We should this according to the user's UA, and use Via.

The stream transport uses file_get_contents. For large files, this might exceed PHP's max memory limit.

Change History (3)

comment:1 Changed 3 years ago by vipsoft (robocoder)

  • Description modified (diff)
  • Summary changed from Piwik_Http: add support for custom header fields to Piwik_Http: custom headers, and file_get_contents

comment:2 Changed 3 years ago by vipsoft (robocoder)

  • Resolution set to fixed
  • Status changed from new to closed

(In [4738]) fixes #2441, fixes #1869

Note: See TracTickets for help on using tickets.