[wp-trac] [WordPress Trac] #37918: wp_remote_get skips first line under some cirumstances
WordPress Trac
noreply at wordpress.org
Fri Sep 2 08:39:44 UTC 2016
#37918: wp_remote_get skips first line under some cirumstances
--------------------------+-----------------------------
Reporter: tastenchris | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.6
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
I am using a WP plugin called "amr event lists with ical files" to display
an event list from a google calendar. The plugin uses wp_remote_get to get
the calendars ics data. Under some circumstances the return value of
wp_remote_get lacks the first line of the calendar ("BEGIN:VCALENDAR").
The plugins author and I tried to figure out in what circumstances this
happens, but without success.
There is an example URL showing the described effect used in my WP page:
https://calendar.google.com/calendar/ical/ldncnjg2a0tjv7f36p4kri9eqg%40group.calendar.google.com/public/basic.ics
Getting this URL with wget or curl results in consistent calendar data,
getting it via wp_remote_get the first line is missing. This happens since
WP 4.6, no problem in earlier versions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37918>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list