Feature #1556

req.addSubtitle with possibility to send http headers

Added by andreus sebes about 10 years ago. Updated about 9 years ago.

Status:FixedStart date:01/19/2013
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:Plugins
Target version:-

Description

Hi andoma,

I'm building a plugin to fetch subtitles from a website, but the download subtitle is a URL that requires to send a Cookie: header with the user session.

Could you have to possibility to send custom http headers in req.addSubtitle?

An example is this: http://www.legendasdivx.com/modules.php?name=Downloads&d_op=getit&lid=182454
You can only downlaod the zip/rar if you are logged in (with a cookie)

Thanks
andreus

History

#1 Updated by Andreas Smas about 10 years ago

  • Status changed from New to Need feedback

Is this still valid?

Since there is a LegendasDivX plugin in the repo?

#2 Updated by andreus sebes about 10 years ago

Hi andreas,

Yes, still valid. Is in the repo for tests only.

#3 Updated by Andreas Smas about 10 years ago

Ah OK, I see.

Showtime should deal with cookies automatically in its HTTP client without the plugins having to worry about them at all.

Please try that and if it does not work enable HTTP debug in settings:dev and attach the debug log.

#4 Updated by andreus sebes about 10 years ago

The problem is that i need to send a custom cookie.

#5 Updated by Andreas Smas almost 10 years ago

Sorry for forgetting about this.

Perhaps plugin.addHTTPAuth() will solve your issue?

See the JSAPI_plugin wiki page.

#6 Updated by Leonid Protasov about 9 years ago

Is the problem still alive?

#7 Updated by Leonid Protasov about 9 years ago

  • Status changed from Need feedback to Fixed
  • % Done changed from 0 to 100

httpReq does the job.

Also available in: Atom PDF