You should use the callout.net library. Or alternatively just compare your code to that library, there isn't a lot of code but for security completeness I'd suggest using the library.