mirror of
https://github.com/mmatczuk/go-http-tunnel.git
synced 2026-05-15 14:16:17 -06:00
[GH-ISSUE #53] io error on http2 #25
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/go-http-tunnel#25
Loading…
Add table
Add a link
Reference in a new issue
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?
Originally created by @radutopala on GitHub (Nov 23, 2017).
Original GitHub issue: https://github.com/mmatczuk/go-http-tunnel/issues/53
I get this error:
io error: Put http://localhost/login: http2: unsupported scheme.. what could be the problem?@mmatczuk commented on GitHub (Nov 23, 2017):
http2://in config file?@radutopala commented on GitHub (Nov 23, 2017):
I was accessing
http://localhostin browser. If I accesshttp://localhost/loginit works fine .. I think the underlying app (PHP Symfony app) I'm accessing does not support http2.. still investigating.@mmatczuk commented on GitHub (Nov 23, 2017):
Does it work with http://localhost/ (note the slash)
You need to provide some more context anyway.
@radutopala commented on GitHub (Nov 23, 2017):
@mmatczuk I use an apache without http2 support, could that be the cause?
@mmatczuk commented on GitHub (Nov 23, 2017):
No, the error is that you try to call "http" instead of "https" the question is where.
@radutopala commented on GitHub (Nov 23, 2017):
Was reading this .. https://stackoverflow.com/questions/34468231/how-do-i-make-a-http2-only-request-over-http-in-go .. so do we need to use only https with the tunnel?
@mmatczuk commented on GitHub (Nov 23, 2017):
No,
tuneld -httpAddr :8080 -httpsAddr ""you can start server with both http and https send proper messages to proper ports.@radutopala commented on GitHub (Nov 23, 2017):
I did start the server with
tunneld -httpAddr :80 -httpsAddr ""and the same error appears in browser, but only when a redirect is happening from within the app..@mmatczuk commented on GitHub (Nov 23, 2017):
Probably the location is wrong. Could you share some more details.
@radutopala commented on GitHub (Nov 23, 2017):
@mmatczuk I can't really publicly share all the config.. but I'm happy to have a Skype or Hangouts share screen if you can..
@mmatczuk commented on GitHub (Nov 23, 2017):
Drop me an email then.
@radutopala commented on GitHub (Nov 23, 2017):
Pls check https://github.com/golang/net/blob/master/http2/transport.go#L348..
@radutopala commented on GitHub (Nov 23, 2017):
@mmatczuk have sent you an email at michal@scylladb.com.
@radutopala commented on GitHub (Nov 23, 2017):
@mmatczuk on my end it's pretty clear that if the app sends a redirect, this redirect is not valid in http2 for some reason..
@radutopala commented on GitHub (Nov 23, 2017):
@mmatczuk so.. does it makes any sense? 😄
@radutopala commented on GitHub (Nov 23, 2017):
@mmatczuk is there a way to fix this?
@mmatczuk commented on GitHub (Nov 23, 2017):
PRs are welcome.
@mmatczuk commented on GitHub (Nov 23, 2017):
@radutopala thanks for reporting, can you try https://github.com/mmatczuk/go-http-tunnel/pull/55.
@radutopala commented on GitHub (Nov 24, 2017):
@mmatczuk I can confirm this is fixed on #55.
@mmatczuk commented on GitHub (Nov 24, 2017):
Fied by #55