Bug #918

Only 1 Set-Cookie headers inestead of all in httpPost (and possibly httpGet)

Added by Fábio Ferreira about 9 years ago. Updated about 9 years ago.

Status:FixedStart date:04/06/2012
Priority:HighDue date:
Assignee:Andreas Smas% Done:

100%

Category:Plugins
Target version:3.6
Found in version:3.5.108-g6775194 Platform:Linux

Description

When I request a page that returns in header field several Set-Cookie, Showtime will return only the bottom one, for example:

httpPost('http://veehd.com/video/4705315_Paranormal-Activity-3-2011-UNRATED-Blu-Ray-720p-mp4', null, null, null);

Set-Cookie: PHPSESSID=r7rnna44u36pc363b62ob6rq27; path=/; HttpOnly\r\n
Set-Cookie: pp=1333750310; expires=Fri, 20-Apr-2012 21:11:50 GMT; path=/\r\n
Set-Cookie: ppt=1; expires=Fri, 20-Apr-2012 21:11:50 GMT; path=/\r\n

Showtime returns to plugin this:
Set-Cookie: ppt=1; expires=Fri, 20-Apr-2012 21:11:50 GMT; path=/\r\n

This problem affects several websites including VeeHD, making it impossible to get the video link.

Associated revisions

Revision b984e938
Added by Andreas Smas about 9 years ago

js: Add new property 'multiheaders' to HTTP request return object

In this header (as different to the header property) each property
in the object is a list of strings rather than a single string.

This makes it possible to return multiple headers to the caller.
(such as multiple cookies set via Set-Cookie, etc)

Fixes #918

Change included in version 3.5.112

History

#1 Updated by Andreas Smas about 9 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#2 Updated by Andreas Smas about 9 years ago

multiheaders is your friend.

Remember to depend on Showtime 3.5.112 or newer

#3 Updated by Fábio Ferreira about 9 years ago

Many thanks for fixing this issue :), will try it later.

Also available in: Atom PDF