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

Asyn function not working with HTTPS #236

Open
BorisKM opened this issue Dec 3, 2024 · 2 comments
Open

Asyn function not working with HTTPS #236

BorisKM opened this issue Dec 3, 2024 · 2 comments

Comments

@BorisKM
Copy link

BorisKM commented Dec 3, 2024

$fp = fsockopen($parts['host'], isset($parts['port']) ? $parts['port']:80, $errno, $errstr, 30);

If my website is forced to HTTP though server, then fsocket is not working.. And errors not logged..

@aheinze
Copy link
Collaborator

aheinze commented Dec 4, 2024

Did you check your php error log file?

@BorisKM
Copy link
Author

BorisKM commented Dec 4, 2024

There are no errors at all.
However, after digging deeper and changing the code, i understood that server responds with a 302 HTTP status (to the HTTPS url).
fsockopen can't properly work with redirections.
When i change fsockopen to use SSL, then server return 400 HTTP status.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants