summaryrefslogtreecommitdiff
path: root/src/reqs.c (follow)
AgeCommit message (Collapse)AuthorFilesLines
2001-10-25Fixed the problems with sending/not sending headers so that the CONNECTRobert James Kaes1-15/+9
(SSL) method would work with upstream proxying!
2001-10-25Changed the way relay_connection() works by having the both buffersRobert James Kaes1-22/+42
emptied when either socket is closed. This should be better for the tunnel connections. Change the connect_to_upstream() function to better utilize the establish_http_connection() function. Code re-use is cool. :)
2001-10-24Error message cleanup to make the information more informative.Robert James Kaes1-11/+11
2001-10-22Cleaned up the code in handle_connection() and added a NULL pointer testRobert James Kaes1-18/+21
in the free request function.
2001-10-19More moving around of the source code. Still can't get CONNECT to workRobert James Kaes1-53/+61
with an upstream proxy.
2001-10-17Trying to allow CONNECT methods through an Upstream proxy.Robert James Kaes1-18/+33
2001-09-16Moved the safe_read() and safe_write() functions into the sock.c fileRobert James Kaes1-144/+136
since they're now used in other places. Added support for a true upstream proxy connection. This involved some rewriting of the handle_connection() function and some of the support functions so that they do perform the domain filtering and anonymous filtering while still connecting to the upstream proxy. I think the code should be cleaned up further.
2001-09-15Removed the log messages related to memory allocation.Robert James Kaes1-20/+48
Move the SSL response header into into own function. Added support for the status host.
2001-09-14Finally got the SSL problem fixed. We can not send _any_ client headersRobert James Kaes1-4/+10
(including the new line) to the origin server when in tunnelling mode. SSL now works correctly. Yeah.
2001-09-14Changed the buffer pointer in safe_write() to be const void* since we'reRobert James Kaes1-33/+20
not changing the values. Instead of building a new request and memory, simply send each part separately. Actually uses less memory _and_ less code.
2001-09-14Massive changes. Split process_method() into a bunch of smaller files andRobert James Kaes1-192/+299
changed the parsing code from REGEX and uri.c to a simplier sscanf() method. Also, include code to handle SSL connections, but that's not quite working yet.
2001-09-12Fixed memory leak.Robert James Kaes1-2/+2
2001-09-11Switched the memory allocation for the large strings to heap based insteadRobert James Kaes1-6/+42
of stack based.
2001-09-08Changed all the mallocs and callocs to use the new safemalloc andRobert James Kaes1-6/+6
safecalloc.
2001-09-07Error message cleanup.Robert James Kaes1-19/+26
2001-09-04Moved the compare_header() test after the skip header test.Robert James Kaes1-4/+4
2001-08-30Replaced the call to xstrstr() with strstr().Robert James Kaes1-2/+2
2001-08-28Moved the strip new line/carriage return from the end of a line into aRobert James Kaes1-6/+26
separate function.
2001-08-27Fixed a SEGV problem with invalid requests.Robert James Kaes1-8/+10
2001-08-26Fixed a problem with the Anonymous filtering. Basically, anonymousRobert James Kaes1-16/+22
filtering was not working in the previous version.
2001-05-30Formating changes. Also, explictly close the client_fd when theRobert James Kaes1-9/+10
connections are destroyed.
2001-05-27Changed some of the types to Posix data types.Robert James Kaes1-60/+44
Changed any reference to log() to log_message(). Fixed a potential memory leak in process_method(). Removed redundant code and variables in relay_connection().
2001-05-23Just a formatting change.Robert James Kaes1-2/+3
2001-01-15Fixed more potential overflow bugs.Robert James Kaes1-3/+4
2000-11-23Changed the filter_host command to filter_url.Robert James Kaes1-2/+2
2000-09-26Updated the free() calls to the safefree() calls.Robert James Kaes1-3/+3
2000-09-12MAJOR RE-WRITE! Read the ChangeLog and look at the source. It's shorterRobert James Kaes1-626/+445
than redocumenting the changes here. :)
2000-03-31Fixed a bug with the path in clientreq. If the path was empty it caused aRobert James Kaes1-5/+9
malformed request to be sent.
2000-03-31Updated the anonheader function to use the new anonymous API. Removed theRobert James Kaes1-28/+18
hack for the POST method in clientreq.
2000-03-29Fixed a bug with the clientreq function which was incorrectly setting theRobert James Kaes1-2/+4
clientheader flag and causing _all_ headers to be sent even in anonymous mode.
2000-03-28Fixed another NULL bug with the uri->authority. If an badly formed requestRobert James Kaes1-1/+6
was made in the form of http:\\www.somewhere.com/ tinyproxy would SEGV. This has been corrected.
2000-03-28Fixed a NULL pointer bug in clientreq. If the SCHEME in the URL was NULLRobert James Kaes1-5/+12
the program would SEGV. This was caused by the error logging code.
2000-03-11Included the changes needed to re-add the upstream proxy option.Robert James Kaes1-10/+58
2000-02-16This commit was generated by cvs2svn to compensate for changes in r2,Steven Young1-0/+832
which included commits to RCS files with non-trunk default branches.