Author

Topic: Using curl in the Bitcoin Source (Read 767 times)

legendary
Activity: 1628
Merit: 1012
July 16, 2014, 09:50:13 PM
#6
there are also some http helper functions in rpcprotocol.cpp which may help you read the http headers and messages
See GetMyExternalIP and GetMyExternalIP2 in net.cpp, which uses an HTTP API to get your external IP. You can mostly copy GetMyExternalIP2 for your use.

Thanks, will do!
sr. member
Activity: 294
Merit: 250
Bitmark Developer
July 16, 2014, 09:19:44 PM
#5
there are also some http helper functions in rpcprotocol.cpp which may help you read the http headers and messages
administrator
Activity: 5222
Merit: 13032
July 16, 2014, 09:08:43 PM
#4
See GetMyExternalIP and GetMyExternalIP2 in net.cpp, which uses an HTTP API to get your external IP. You can mostly copy GetMyExternalIP2 for your use.
legendary
Activity: 1628
Merit: 1012
July 16, 2014, 09:00:37 PM
#3
I'm trying to create an implementation where a number is pulled from a website and added to the wallet.

and added to where exactly?



I've got two different things I'd like to do - display a value for the current price of Bitcoin (this is similar to what you see in MultiBit) either in the toolbar or directly on the wallet itself.

Also, save the value so that an RPC can display the information in the console.
sr. member
Activity: 294
Merit: 250
Bitmark Developer
July 16, 2014, 08:47:17 PM
#2
I'm trying to create an implementation where a number is pulled from a website and added to the wallet.

and added to where exactly?

legendary
Activity: 1628
Merit: 1012
July 16, 2014, 08:44:45 PM
#1
Hey all,

I've been working for a while now to learn more about the Bitcoin source, and I'm trying to create an implementation where a number is pulled from a website and added to the wallet.

I can't seem to get this to happen any way, and I'm hoping that from a high level someone can give me some guidance.

I would love to be able to use curl, but it doesn't seem to be supported in the Bitcoin source; As well as any http retrieval method that I'm trying.

Any help is much appreciated!
Jump to: