I am using curl in a bash script to fetch the response of a service as below,
response=$(curl -isb -H \"Accept: application/json\" \"http://host:8080/some/resour
#!/bin/bash req=$(curl -s -X GET http://host:8080/some/resource -H "Accept: application/json") 2>&1 echo "${req}"