i have a web service like \" post -H \'Authorization: Token token=\"2hwhdh443hdhfh43j3jdej3j3\"\'. how to set this header in httpPost/ get request.
My code is here-<
Try removing "Content-Type" header and modify "Authorization" to -
request.addHeader("Authorization","Token token=2hwhdh443hdhfh43j3jdej3j3");
Working for me.