Lost-MSth / Arcaea-server

一个微型的 Arcaea 本地服务器 A small local server for Arcaea
MIT License
371 stars 52 forks source link

code 400, message Bad request syntax/Bad HTTP/0.9 request type #139

Closed enchanteddaemon closed 1 month ago

enchanteddaemon commented 1 year ago

Info: Server version: 1.7 Client version: 3.1.2

Platform: iOS Server Platform: Android on Termux

How do I fix this code 400 error, I typed https on the binary file instead of http only.Screenshot_2023-11-16-22-22-43-71_84d3000e3f4017145260f7618db1d683.jpg

enchanteddaemon commented 1 year ago

I think it needs certificate?

enchanteddaemon commented 1 year ago

I tried putting https because http don't work/doesn't have a response to the server

Lost-MSth commented 1 year ago

Server is not running under HTTPS. You need a domain name and SSL certificate if you want to use HTTPS.

enchanteddaemon commented 1 year ago

Server is not running under HTTPS. You need a domain name and SSL certificate if you want to use HTTPS.

I got a SSL certificate, but how do I get a domain name?

If I put SSL in the server, the link turns into https right? So I put SSL on the server, and made the link https on the binary file, now it doesn't have a response

its so hard to connect to ios

Lost-MSth commented 1 year ago

One SSL certificate must bind one domain, and it can be only used in that domain. If you have no domain, why you think you got a SSL certificate? It is obviously useless. The HTTPS connection will be untrusted.

Most of domains requires fees. Normally, a device or a server with public IP, a domain, an SSL certificate, are all required for building an HTTPS server.

BakaGzRay12456 commented 9 months ago

The iOS platform allows the utilization of HTTP by enabling the NSAppTransportSecurity-NSAllowsArbitraryLoads key to true in info.plist.