Bug #769

httpGet and httPost cookie override problem

Added by NP ... almost 9 years ago. Updated almost 7 years ago.

Status:FixedStart date:11/09/2011
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:Plugins
Target version:4.4
Found in version:3.3.209 Platform:Linux

Description

In the plugin API using httpGet or httPost if there is already a cookie present and one is force in the [Object Headers] the cookie isn't overridden, in the end Showtime http client sends bottom cookies in the request.
Example:

ICEFILMS = 'www.icefilms.info';

showtime.httpPost( ICEFILMS); // this returns a Set-Cookie: __cfduid=dd182576dc1d4ef22b264151e3ff9f8cc1320804201

showtime.httpPost( ICEFILMS + '/membersonly/components/com_iceplayer/video.phpAjaxResp.php', arg, null, {'Cookie': '3da7d6ecf7a0577769989e8f1e369b33=htbdi8brp3028edropvhk59au3' })

The Post generates this:
POST /membersonly/components/com_iceplayer/video.phpAjaxResp.php HTTP/1.1
Cookie: __cfduid=dd182576dc1d4ef22b264151e3ff9f8cc1320804201
Cookie: 3da7d6ecf7a0577769989e8f1e369b33=htbdi8brp3028edropvhk59au3
Referer: http://www.icefilms.info
Content-Type: application/x-www-form-urlencoded
Content-Length: 59

When it should be only:
POST /membersonly/components/com_iceplayer/video.phpAjaxResp.php HTTP/1.1
Cookie: 3da7d6ecf7a0577769989e8f1e369b33=htbdi8brp3028edropvhk59au3
Referer: http://www.icefilms.info
Content-Type: application/x-www-form-urlencoded

Associated revisions

Revision a7b1d796
Added by Andreas Smas almost 9 years ago

Allow HTTP cookies to be properly overridden from plugins (just as all other headers)

Fixes #769

Change included in version 3.3.272

History

#1 Updated by Andreas Smas almost 9 years ago

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

#2 Updated by Andreas Smas almost 7 years ago

  • Target version set to 4.4

Also available in: Atom PDF