FAQ
I use this code
https://github.com/shouxi/goproxy/blob/master/goproxy_http_v0.01.go
but it can't handle an request without root char , like
http_proxy=127.0.0.1:8080 curl -I golang.org.

tks

--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Search Discussions

  • Snyh xia at Oct 22, 2013 at 9:43 am
    I use this code
    https://github.com/shouxi/goproxy/blob/master/goproxy_http_v0.01.go
    but it can't handle an request without root char , like
    http_proxy=127.0.0.1:8080 curl -I golang.org.

    tks

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Snyh xia at Oct 22, 2013 at 9:45 am
    It's an proxy server, not an url router.
    On Tuesday, October 22, 2013 5:43:01 PM UTC+8, snyh xia wrote:

    I use this code
    https://github.com/shouxi/goproxy/blob/master/goproxy_http_v0.01.go
    but it can't handle an request without root char , like http_proxy=
    127.0.0.1:8080 curl -I golang.org.

    tks
    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.
  • Andrew Gerrand at Oct 22, 2013 at 1:15 pm
    The root character is always implied. Whether you write
      curl http://golang.org
    or
      curl http://golang.org/
    the server still sees a path of "/".

    Andrew

    --
    You received this message because you are subscribed to the Google Groups "golang-nuts" group.
    To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscribe@googlegroups.com.
    For more options, visit https://groups.google.com/groups/opt_out.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedOct 22, '13 at 9:42a
activeOct 22, '13 at 1:15p
posts4
users2
websitegolang.org

2 users in discussion

Snyh xia: 3 posts Andrew Gerrand: 1 post

People

Translate

site design / logo © 2021 Grokbase