hasane. Maybe you should be less of an a** and consider that Furry Guy actually knows his schnizzit, especially since you are the one asking the question.
It doesn’t get any simpler than using curl. You will have to do the same things no matter what other language you choose, only you will also have to set up the sockets, create the connection, POST the request, and wait on the response. Curl does all that for you automagically.
You will need to know the API of pastebin (which I have never looked at nor care to). It is likely you will have to perform a few POSTs to make pastebin give you access, but otherwise the data should simply be a file you can request.
Honestly, though, it sounds to me like you have an XY problem.