Just like Java, FPC comes with a rich library. I suggest to start with fcl-web aka fpweb, because that is straight out of the box in fpc.
You will find it in fpc/packages/fcl-web and comes with good examples.
I myself use synapse indeed (for delphi compatibility only), but fpc has many http component options,like Indy. These are third party solutions.