working in browsers and curl