Lines Matching refs:io
269 Ioproc *io; in httpopen() local
275 io = c->io; in httpopen()
289 fd = iotlsdial(io, hs->netaddr, 0, 0, 0, url->ischeme==UShttps); in httpopen()
299 ioclose(io, hs->fd); in httpopen()
309 ioprint(io, fd, "%s %s HTTP/1.0\r\nHost: %s\r\n", in httpopen()
314 ioprint(io, fd, "User-Agent: %s\r\n", c->ctl.useragent); in httpopen()
320 ioprint(io, fd, "%s", cookies); in httpopen()
326 ioprint(io, fd, "Content-type: %s\r\n", PostContentType); in httpopen()
327 ioprint(io, fd, "Content-length: %ud\r\n", c->npostbody); in httpopen()
334 ioprint(io, fd, "Authorization: %s\r\n", c->authenticate); in httpopen()
338 ioprint(io, fd, "\r\n"); in httpopen()
340 if(iowrite(io, fd, c->postbody, c->npostbody) != c->npostbody) in httpopen()
345 initibuf(&hs->b, io, fd); in httpopen()
531 ioclose(c->io, hs->fd); in httpclose()