         URLRequest.setOAuth2Token(token)
         URLRequest.HTTPMethod = method
         URLRequest.setUserAgentForReddit()
+#if _TEST
+        print(URLRequest.curl())
+#endif
         return URLRequest
     }
     

import Foundation

extension NSMutableURLRequest {
    func setRedditBasicAuthentication() {
        let basicAuthenticationChallenge = Config.sharedInstance.clientID + ":"
        let data = basicAuthenticationChallenge.dataUsingEncoding(NSUTF8StringEncoding)!

        URLRequest.setOAuth2Token(token)
        URLRequest.HTTPMethod = method
        URLRequest.setUserAgentForReddit()
#if _TEST
        print(URLRequest.curl())
#endif
        return URLRequest
    }
    
