summaryrefslogtreecommitdiffstats
path: root/lib/Utils/abrt_curl.cpp
Commit message (Collapse)AuthorAgeFilesLines
* lower case direcotry(no code changed)Nikola Pajkovsky2010-08-101-320/+0
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* abrt_curl: discard headers from HTTP redirectionDenys Vlasenko2010-07-281-4/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | Example where it is needed: abrtd: save_headers: header 0: 'HTTP/1.1 301 Moved Permanently' abrtd: save_headers: header 1: 'Connection: close' abrtd: save_headers: header 2: 'Location: NEW_URL' abrtd: save_headers: header 3: '' ... If we will continue collecting headers, we might be fooled to think that the following transaction had "Location: NEW_URL" header. This patch discards headers when it sees new "HTTP/..." line (note the count restarting from 0): ... abrtd: save_headers: header 0: 'HTTP/1.1 200 OK' abrtd: save_headers: header 1: 'Date: Wed, 28 Jul 2010 13:33:55 GMT' abrtd: save_headers: header 2: 'Server: Apache' abrtd: save_headers: header 3: 'Cache-Control: no-cache' abrtd: save_headers: header 4: 'Pragma: no-cache' abrtd: save_headers: header 5: 'Content-Type: text/html; charset=UTF-8' abrtd: save_headers: header 6: 'Connection: close' abrtd: save_headers: header 7: 'Transfer-Encoding: chunked' abrtd: save_headers: header 8: '' Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* wire up SSLVerify in RHTSupport.conf to actually have the desired effectDenys Vlasenko2010-07-211-1/+7
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* lower-case devel headersNikola Pajkovsky2010-07-091-1/+1
| | | | Signed-off-by: Nikola Pajkovsky <npajkovs@redhat.com>
* abrt_curl: fix a problem with incorrect content-length on 32-bit archesDenys Vlasenko2010-06-151-2/+6
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* take file upload POST code from gavin's lib. Adapt rhfastcheck to use ↵Denys Vlasenko2010-05-281-78/+170
| | | | | | changed API Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* trivial: better HTTP/curl error reportingDenys Vlasenko2010-03-301-0/+4
| | | | Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rhfastcheck: a new reporter plugin based on Gavin's workDenys Vlasenko2010-03-251-3/+4
| | | | | | Plugin quickly checks RH support DB for known solutions. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
* rhticket: factor out HTTP POST code into abrt_curl.{h,cpp}Denys Vlasenko2010-03-251-0/+193
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>