added response handling for url queries returned as text/plain content types