Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crypto/tls: handshake failure with secure.quantserve.com #10039

Closed
martende opened this issue Feb 28, 2015 · 1 comment
Closed

crypto/tls: handshake failure with secure.quantserve.com #10039

martende opened this issue Feb 28, 2015 · 1 comment

Comments

@martende
Copy link

@martende martende commented Feb 28, 2015

Code produces:
2015/02/28 23:47:34 Get https://secure.quantserve.com/quant.js: remote error: handshake failure
but all browsers open it.

package main

import (
    "fmt"
    "io/ioutil"
    "log"
    "net/http"
)

func main() {
    res, err := http.Get("https://secure.quantserve.com/quant.js")
    if err != nil {
        log.Fatal(err)
    }
    robots, err := ioutil.ReadAll(res.Body)
    res.Body.Close()
    if err != nil {
        log.Fatal(err)
    }
    fmt.Printf("%s", robots)
}
@titanous

This comment has been minimized.

Copy link
Member

@titanous titanous commented Feb 28, 2015

This is not a bug in net/http. crypto/tls does not support TLS_RSA_WITH_RC4_128_MD5 which is the only cipher suite that secure.quantserve.com supports.

@mikioh mikioh changed the title net/http handshake failure crypto/tls: handshake failure with secure.quantserve.com Mar 1, 2015
@mikioh mikioh closed this Mar 1, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants
You can’t perform that action at this time.