summaryrefslogtreecommitdiff
path: root/gweb
AgeCommit message (Collapse)AuthorFilesLines
2011-02-15gweb: Avoid forward declarations in resolver codeMarcel Holtmann1-341/+338
2011-02-15gweb: Some coding style cleanup on resolver codeMarcel Holtmann1-50/+74
2011-01-26gweb: Check GString pointers before freeing themMohamed Abbas1-3/+9
Fixes BMC#12452
2011-01-01gweb: Skip hostname resolving when proxy is usedMarcel Holtmann1-2/+3
2011-01-01gweb: Add support for handling proxy informationMarcel Holtmann1-5/+54
2011-01-01gweb: Add extra debug for proxy setupMarcel Holtmann1-1/+8
2010-12-30Handling multiple message-header fields with the same name.Mohamed Abbas1-40/+79
Append all multiple message-header fields with the same name and remove any white space in front of fiels value.
2010-12-28Add g_web_result_get_header support.Mohamed Abbas2-13/+88
Add all http response header to hash table and allow user to get these header values. Header with same key will be replaced by last header value.
2010-12-07gresolv: Destroy query after removing it from the resolv queueSamuel Ortiz1-2/+2
Fixes BMC#10958
2010-12-07gresolv: Remove ipv6 query from the resolv queueSamuel Ortiz1-1/+1
2010-12-02gresolv: Implement RFC3484 rule 9 (prefer longest matching prefix)David Woodhouse1-0/+35
2010-12-02gresolv: Add scope handling to RFC3484 sortDavid Woodhouse1-1/+55
2010-12-02gresolv: First partial implementation for RFC3484 sortingDavid Woodhouse1-1/+48
2010-12-02gresolv: Calculate precedence/label/etc required for RFC3484 sortingDavid Woodhouse1-1/+158
2010-12-02gresolv: Don't convert results to strings so earlyDavid Woodhouse1-94/+100
We're going to want results in sockaddr form for sorting, so let's put them directly into the array we'll want for the sort process, even though we haven't actually implemented sorting yet. We can ditch the support for arbitrary callbacks from the individual queries, too; there's no need for that. The callback to user code comes from the *lookup*, having combined the A and AAAA query results.
2010-12-01gresolv: Send A and AAAA queries, merge results for lookup callbackDavid Woodhouse1-36/+169
2010-12-01gresolv: Start handling AAAA results in queryDavid Woodhouse1-6/+12
2010-12-01gresolv: Fix handling of IPv6 nameserversDavid Woodhouse1-14/+43
If IPv6 nameservers were specified in /etc/resolv.conf, we would end up sending NS queries to 0.0.0.0 because we weren't parsing the __res_state structure correctly. We were assuming that all listed nameservers would be Legacy IP. Also fix connect_udp_channel() to generate the address correctly instead of just asssuming Legacy IP.
2010-12-01gresolv: Handle POLLERR on DNS UDP socketDavid Woodhouse1-2/+2
If we get an error on the UDP socket, we'll currently go into an endless loop eating CPU with poll() returning POLLERR and us ignoring it. This at least hooks things up so that our callback gets called, and we stop looping. But the callback's handling of POLLERR isn't correct. It should close the socket and open a new one. As it is, it's just going to try to use the same broken socket again for the next request. But at least with this patch it'll stop eating CPU.
2010-11-08Don't report zero length success status back to clientMarcel Holtmann1-3/+5
2010-11-08Fix issue with non-blocking TLS connectionsMarcel Holtmann1-1/+2
2010-11-08Add extra debug statement for when TLS encryption is usedMarcel Holtmann1-2/+5
2010-11-08Use file descriptor directly instead of GIOChannelMarcel Holtmann1-30/+40
2010-11-08Add extra debug for result function return valueMarcel Holtmann1-1/+6
2010-11-08Add support for setting the HTTP version informationMarcel Holtmann2-4/+37
2010-11-08Read IO flags first before setting channel to non-blockingMarcel Holtmann1-6/+9
2010-11-07Add some extra HTTP body context debugMarcel Holtmann1-2/+4
2010-11-07Use send buffer to handle non-blocking GIOChannel usageMarcel Holtmann1-44/+49
2010-11-07Deal with EAGAIN and GnuTLS channelsMarcel Holtmann1-1/+21
2010-11-07Add support for handling non-blocking GnuTLS channelsMarcel Holtmann1-7/+33
2010-11-06Add interface for setting proxy for GWeb sessionsMarcel Holtmann2-0/+17
2010-11-06Add workaround for not linking against GnuTLSMarcel Holtmann1-0/+31
2010-11-06Support chunk encode in HTTP response.Mohamed Abbas1-7/+159
If chunk encode is used them make sure we strip the chunk body only.
2010-11-06Add chunk encode support when doing HTTP request.Mohamed Abbas1-72/+156
Allow user to send chunked HTTP post request by calling the input callback function on write until the user indicate no more data then we send the 0 length chunk to indicate end of request body. Now we use a new watch for sending data. This watch is only active if more data need to be send.
2010-11-02Add simple support for dealing with HTTP body contentMarcel Holtmann2-15/+30
2010-11-01Add some skeleton for POST supportMarcel Holtmann1-6/+34
2010-11-01Split the GET and POST method APIsMarcel Holtmann2-7/+24
2010-11-01Use return value of result function to indicate to proceed or notMarcel Holtmann1-1/+1
2010-11-01The HTTP status code can be retrieved from result objectMarcel Holtmann2-8/+10
2010-11-01Add really simple content token parserMarcel Holtmann2-0/+165
2010-11-01Fix GWeb header parsing and make it more robustMarcel Holtmann1-67/+52
2010-10-31Ensure that chunk buffer is '\0' terminatedMarcel Holtmann1-1/+3
2010-10-31Reset GWebResult buffer and length in case of an errorMarcel Holtmann1-0/+4
2010-10-31Add support for parsing HTTP status code responseMarcel Holtmann2-0/+17
2010-10-30Add support for HTTP header parsing and body contentMarcel Holtmann2-18/+124
2010-10-30Remove one debug print for GWeb session flagsMarcel Holtmann1-2/+0
2010-10-30Add proper support for HTTP close connection optionMarcel Holtmann2-1/+23
2010-10-30Add support for GWeb requests with IP address only URLMarcel Holtmann1-8/+31
2010-10-30Add support for setting accept option for GWebMarcel Holtmann2-6/+48
2010-10-30Add support for adding custom user agent stringMarcel Holtmann2-1/+35