Lost-MSth / Arcaea-server

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

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

Open enchanteddaemon opened 10 months ago

enchanteddaemon commented 10 months 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 10 months ago

I think it needs certificate?

enchanteddaemon commented 10 months ago

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

Lost-MSth commented 10 months ago

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

enchanteddaemon commented 9 months 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 9 months 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 7 months ago

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