Lines Matching refs:req
91 static int payload_cb(int sock, struct http_request *req, void *user_data) in payload_cb() argument
193 struct http_request req; in run_queries() local
195 memset(&req, 0, sizeof(req)); in run_queries()
197 req.method = HTTP_GET; in run_queries()
198 req.url = "/"; in run_queries()
199 req.host = SERVER_ADDR4; in run_queries()
200 req.protocol = "HTTP/1.1"; in run_queries()
201 req.response = response_cb; in run_queries()
202 req.recv_buf = recv_buf_ipv4; in run_queries()
203 req.recv_buf_len = sizeof(recv_buf_ipv4); in run_queries()
205 ret = http_client_req(sock4, &req, timeout, "IPv4 GET"); in run_queries()
211 struct http_request req; in run_queries() local
213 memset(&req, 0, sizeof(req)); in run_queries()
215 req.method = HTTP_GET; in run_queries()
216 req.url = "/"; in run_queries()
217 req.host = SERVER_ADDR6; in run_queries()
218 req.protocol = "HTTP/1.1"; in run_queries()
219 req.response = response_cb; in run_queries()
220 req.recv_buf = recv_buf_ipv6; in run_queries()
221 req.recv_buf_len = sizeof(recv_buf_ipv6); in run_queries()
223 ret = http_client_req(sock6, &req, timeout, "IPv6 GET"); in run_queries()
249 struct http_request req; in run_queries() local
251 memset(&req, 0, sizeof(req)); in run_queries()
253 req.method = HTTP_POST; in run_queries()
254 req.url = "/foobar"; in run_queries()
255 req.host = SERVER_ADDR4; in run_queries()
256 req.protocol = "HTTP/1.1"; in run_queries()
257 req.payload = "foobar"; in run_queries()
258 req.payload_len = strlen(req.payload); in run_queries()
259 req.response = response_cb; in run_queries()
260 req.recv_buf = recv_buf_ipv4; in run_queries()
261 req.recv_buf_len = sizeof(recv_buf_ipv4); in run_queries()
263 ret = http_client_req(sock4, &req, timeout, "IPv4 POST"); in run_queries()
269 struct http_request req; in run_queries() local
271 memset(&req, 0, sizeof(req)); in run_queries()
273 req.method = HTTP_POST; in run_queries()
274 req.url = "/"; in run_queries()
275 req.host = SERVER_ADDR6; in run_queries()
276 req.protocol = "HTTP/1.1"; in run_queries()
277 req.payload = "foobar"; in run_queries()
278 req.payload_len = strlen(req.payload); in run_queries()
279 req.response = response_cb; in run_queries()
280 req.recv_buf = recv_buf_ipv6; in run_queries()
281 req.recv_buf_len = sizeof(recv_buf_ipv6); in run_queries()
283 ret = http_client_req(sock6, &req, timeout, "IPv6 POST"); in run_queries()
311 struct http_request req; in run_queries() local
317 memset(&req, 0, sizeof(req)); in run_queries()
319 req.method = HTTP_POST; in run_queries()
320 req.url = "/chunked-test"; in run_queries()
321 req.host = SERVER_ADDR4; in run_queries()
322 req.protocol = "HTTP/1.1"; in run_queries()
323 req.payload_cb = payload_cb; in run_queries()
324 req.header_fields = headers; in run_queries()
325 req.response = response_cb; in run_queries()
326 req.recv_buf = recv_buf_ipv4; in run_queries()
327 req.recv_buf_len = sizeof(recv_buf_ipv4); in run_queries()
329 ret = http_client_req(sock4, &req, timeout, "IPv4 POST"); in run_queries()
335 struct http_request req; in run_queries() local
341 memset(&req, 0, sizeof(req)); in run_queries()
343 req.method = HTTP_POST; in run_queries()
344 req.url = "/chunked-test"; in run_queries()
345 req.host = SERVER_ADDR6; in run_queries()
346 req.protocol = "HTTP/1.1"; in run_queries()
347 req.payload_cb = payload_cb; in run_queries()
348 req.header_fields = headers; in run_queries()
349 req.response = response_cb; in run_queries()
350 req.recv_buf = recv_buf_ipv6; in run_queries()
351 req.recv_buf_len = sizeof(recv_buf_ipv6); in run_queries()
353 ret = http_client_req(sock6, &req, timeout, "IPv6 POST"); in run_queries()