• 13

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191


File: /home/prodcxja/public_html/questions/application/views/question.php
Line: 191
Function: _error_handler

File: /home/prodcxja/public_html/questions/application/controllers/Questions.php
Line: 433
Function: view

File: /home/prodcxja/public_html/questions/index.php
Line: 315
Function: require_once

I'm trying to use openssl s_client to send a raw HTTPS request.

I type this:

$ openssl s_client -connect homebrew.herokuapp.com:443

After it finishes the SSL pleasantries, I type this:

POST http://homebrew.herokuapp.com/ HTTP/1.1

But then it closes the connection with this:

HTTP/1.1 505 HTTP Version Not Supported
Connection: close

I only get this on apps hosted on Heroku. Why?

By using an absolute URL you issue a request against an HTTP proxy. To make a request against a HTTP server you need a relative URL. Also, HTTP/1.1 the use a a Host header:

 POST / HTTP/1.1
 Host: homebrew.herokuapp.com
  • 1
Reply Report
    • Sorry, I get the same error after using POST / HTTP/1.1 as well. I get the error immediately after that line so I can't even type the second line.

Trending Tags