Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

srs http_hooks only support http, not support https #1791

Closed
wuzhidefeng opened this issue Jun 2, 2020 · 6 comments
Closed

srs http_hooks only support http, not support https #1791

wuzhidefeng opened this issue Jun 2, 2020 · 6 comments
Assignees
Labels
API HTTP-API, HTTP-Callback, etc. Bug It might be a bug. TransByAI Translated by AI/GPT.
Milestone

Comments

@wuzhidefeng
Copy link

wuzhidefeng commented Jun 2, 2020

SRS version: 3.0 release
Issue: When I use the http_hooks feature, there is no problem if I specify an http address in on_dvr. However, if I specify an https address, I receive the following response:

|<html>
|<head><title>301 Moved Permanently</title></head>
|<body bgcolor="white">
|<center><h1>301 Moved Permanently</h1></center>
|<hr><center>nginx/1.12.2</center>
|</body>
|</html>

How can I use HTTPS callbacks in http_hooks?
My configuration file is as follows:

http_hooks {
		
                         enabled         on;
			on_dvr          https://xxxxxx/api/historyVideo/upload;
		}

TRANS_BY_GPT3

@misterpancn
Copy link

I also met this issue. Have you solved it?

@wuzhidefeng
Copy link
Author

I also met this issue. Have you solved it?

I modified the code of srs by myself.

@misterpancn
Copy link

@wuzhidefeng Are you modifying the source code directly?

@wuzhidefeng
Copy link
Author

@wuzhidefeng Are you modifying the source code directly?

Yes,the source code looks like doesn't support https.

@winlinvip
Copy link
Member

Dup to #1657

@winlinvip
Copy link
Member

Fixed in #1657 (comment)

@winlinvip winlinvip self-assigned this Sep 4, 2021
@winlinvip winlinvip added Bug It might be a bug. API HTTP-API, HTTP-Callback, etc. labels Sep 4, 2021
@winlinvip winlinvip added this to the 4.0 milestone Sep 4, 2021
@winlinvip winlinvip changed the title srs的http_hooks只支持http,不支持https srs http_hooks only support http, not support https Jul 28, 2023
@winlinvip winlinvip added the TransByAI Translated by AI/GPT. label Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API HTTP-API, HTTP-Callback, etc. Bug It might be a bug. TransByAI Translated by AI/GPT.
Projects
None yet
Development

No branches or pull requests

3 participants