Skip to content

http.Client.Do fails to parse responce from bitcoin rpc server #2048

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

Closed
gopherbot opened this issue Jul 7, 2011 · 3 comments
Closed

http.Client.Do fails to parse responce from bitcoin rpc server #2048

gopherbot opened this issue Jul 7, 2011 · 3 comments

Comments

@gopherbot
Copy link
Contributor

by tm1rbrt:

request, e := http.NewRequest("POST", "/",
strings.NewReader(string(callStr)))
request.SetBasicAuth(brpc.user, brpc.pass)
httpClient := new(http.Client)
responce, e := httpClient.Do(request)

The last line throws the following error: unsupported protocol scheme ""
@mattn
Copy link
Member

mattn commented Jul 7, 2011

Comment 1:

You should specify URL like "http://xxxx".

@gopherbot
Copy link
Contributor Author

Comment 2 by tm1rbrt:

Close this, i thought it was using a socket I created earlier. Sorry!

@adg
Copy link
Contributor

adg commented Jul 7, 2011

Comment 3:

Status changed to Invalid.

This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants