adele/ergol
2
2
Fork
You've already forked ergol
1

Hitting the server with curl https gives warning messages #4

Open
opened 2023年02月12日 01:59:55 +01:00 by alexlehm · 4 comments
Contributor
Copy link

When hitting the server with curl gives warning messages

$ curl -ik https://gemini.lehmann.cx:1965
curl: (1) Received HTTP/0.9 when not allowed
2023年02月12日 01:57:23 104.238.186.103:56778 GET / HTTP/1.1
PHP Notice: Undefined index: scheme in /home/lehmann/ergol/ergol.php on line 169
PHP Notice: Undefined index: host in /home/lehmann/ergol/ergol.php on line 174
PHP Notice: Undefined property: stdClass::$ in /home/lehmann/ergol/ergol.php on line 195
PHP Notice: Trying to get property 'folder' of non-object in /home/lehmann/ergol/ergol.php on line 195
PHP Notice: Undefined property: stdClass::$ in /home/lehmann/ergol/ergol.php on line 196
PHP Notice: Trying to get property 'lang' of non-object in /home/lehmann/ergol/ergol.php on line 196

Not sure if the server should reply to a HTTPS request with a HTTP error response

When hitting the server with curl gives warning messages ``` $ curl -ik https://gemini.lehmann.cx:1965 curl: (1) Received HTTP/0.9 when not allowed ``` ``` 2023年02月12日 01:57:23 104.238.186.103:56778 GET / HTTP/1.1 PHP Notice: Undefined index: scheme in /home/lehmann/ergol/ergol.php on line 169 PHP Notice: Undefined index: host in /home/lehmann/ergol/ergol.php on line 174 PHP Notice: Undefined property: stdClass::$ in /home/lehmann/ergol/ergol.php on line 195 PHP Notice: Trying to get property 'folder' of non-object in /home/lehmann/ergol/ergol.php on line 195 PHP Notice: Undefined property: stdClass::$ in /home/lehmann/ergol/ergol.php on line 196 PHP Notice: Trying to get property 'lang' of non-object in /home/lehmann/ergol/ergol.php on line 196 ``` Not sure if the server should reply to a HTTPS request with a HTTP error response
Author
Contributor
Copy link

Also, the client IP address would be helpful in error messages

Also, the client IP address would be helpful in error messages
Owner
Copy link

I do not use Ergol anymore. It is just a proof of concept (writing a Gemini server in PHP). Now, pollux.casa run gemserv as gemini server and ergol-http with lighttpd for http server.
I don't think I will correct this kind of bug. However, feel free to propose pull requests.

I do not use Ergol anymore. It is just a proof of concept (writing a Gemini server in PHP). Now, pollux.casa run [gemserv](https://sr.ht/~int80h/gemserv/) as gemini server and [ergol-http](https://codeberg.org/adele.work/ergol-http) with lighttpd for http server. I don't think I will correct this kind of bug. However, feel free to propose pull requests.
Author
Contributor
Copy link

ok, for a POC server it is certainly working well

I will take a look if I can improve the logging, otherwise I will just close the issue

ok, for a POC server it is certainly working well I will take a look if I can improve the logging, otherwise I will just close the issue
Author
Contributor
Copy link

fixed in #7

fixed in #7
Sign in to join this conversation.
No Branch/Tag specified
main
No results found.
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
adele/ergol#4
Reference in a new issue
adele/ergol
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?