Hey! This has had me stumped for a while. I am quite new to networking in c++, however, I do have fundamental knowledge.
I was wondering how exactly I send a request to a Bitcoin mining pool to request block header information from a pool in c++. I have done much research myself into this, and so far haven't found a solution. I would prefer to use the newer Getblocktemplate protocol, however, I am fine with an answer regarding the Getwork protocol.
I am aware I must send a request to a pool, in the form of a JSON snippet, and the server will respond with the current Block's information, also in the form of a JSON snippet. A have received this information from here:
https://en.bitcoin.it/wiki/Getblocktemplate and from many other sources, however, nobody explicitly said how to send a request to the pool, and no examples of c++ code were given.
If somebody could help me I would greatly appreciate it...
Thanks