Home | History | Annotate | Download | only in wps

Lines Matching refs:httpread

2  * httpread - Manage reading file(s) from HTTP/TCP socket
39 #include "httpread.h"
50 struct httpread {
53 void (*cb)(struct httpread *handle, void *cookie,
127 void httpread_destroy(struct httpread *h)
147 struct httpread *h = user_ctx;
148 wpa_printf(MSG_DEBUG, "httpread timeout (%p)", h);
157 struct httpread *h,
171 "httpread: Unacceptable Content-Length %d",
199 static int httpread_hdr_analyze(struct httpread *h)
371 struct httpread *h = sock_ctx;
381 wpa_printf(MSG_DEBUG, "httpread: Trying to read more data(%p)", h);
384 wpa_printf(MSG_DEBUG, "httpread failed: %s", strerror(errno));
387 wpa_hexdump_ascii(MSG_MSGDUMP, "httpread - read", readbuf, nread);
395 wpa_printf(MSG_DEBUG, "httpread premature eof(%p)", h);
401 "httpread premature eof(%p) %d/%d",
410 wpa_printf(MSG_DEBUG, "httpread ok eof(%p)", h);
431 "httpread: Too long header");
449 wpa_printf(MSG_DEBUG, "httpread bad hdr(%p)", h);
453 wpa_printf(MSG_DEBUG, "httpread no body hdr end(%p)",
459 "httpread zero content length(%p)", h);
472 wpa_printf(MSG_DEBUG, "httpread NO BODY for sp. type");
495 "httpread: body_nbytes=%d >= max_bytes=%d",
511 "httpread: Unacceptable body length %d",
518 "httpread: Failed to reallocate buffer (len=%d)",
542 "httpread: Unexpected chunk header value (not a hex digit)");
549 "httpread: Invalid chunk size %d",
563 "httpread end chunks(%p)",
584 "httpread: Invalid chunk end");
597 "httpread got content(%p)", h);
623 "httpread: Invalid ncopy=%d", ncopy);
661 "httpread got content(%p)",
685 wpa_printf(MSG_DEBUG, "httpread read/parse failure (%p)", h);
690 wpa_printf(MSG_DEBUG, "httpread: get more (%p)", h);
694 wpa_printf(MSG_DEBUG, "httpread got file %d bytes type %d",
696 wpa_hexdump_ascii(MSG_MSGDUMP, "httpread: body",
728 struct httpread * httpread_create(
730 void (*cb)(struct httpread *handle, void *cookie,
737 struct httpread *h = NULL;
770 enum httpread_hdr_type httpread_hdr_type_get(struct httpread *h)
779 char * httpread_uri_get(struct httpread *h)
786 int httpread_reply_code_get(struct httpread *h)
793 int httpread_length_get(struct httpread *h)
803 void * httpread_data_get(struct httpread *h)
813 char * httpread_hdr_get(struct httpread *h)
827 char * httpread_hdr_line_get(struct httpread *h, const char *tag)