aboutsummaryrefslogtreecommitdiffstats
path: root/main/http.c
AgeCommit message (Collapse)AuthorFilesLines
2010-05-17Manager cookies are not compatible with RFC2109.lmadsen1-1/+1
The Version field in the cookies we're setting contain quotes around the version number which is not compatible with RFC2109 and breaks some implementations. (closes issue #17231) Reported by: ecarruda Patches: manager_rfc2109-trunk-v1.patch uploaded by ecarruda (license 559) manager_rfc2109-1.6.2-v1.patch uploaded by ecarruda (license 559) Tested by: ecarruda, russell git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@263456 f38db490-d61c-443f-a65b-d21fe96a405b
2010-03-20Resolve a number of FreeBSD build issues.russell1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@253631 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-03somehow missed a bunch of gcc 4.3.x warnings in this branch on the first passkpfleming1-14/+17
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@153823 f38db490-d61c-443f-a65b-d21fe96a405b
2008-11-01fix a bunch of potential problems found by gcc 4.3.x, primarily bare strings ↵kpfleming1-2/+6
being passed to printf()-like functions and ignored results from read()/write() and friends git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@153337 f38db490-d61c-443f-a65b-d21fe96a405b
2008-07-31accomodate users who seem to lack a sense of humor :-)kpfleming1-3/+3
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@134983 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-23Improve some broken cookie parsing code. Previously, manager login over HTTPrussell1-48/+39
would only work if the mansession_id cookie was first. Now, the code builds a list of all of the cookies in the Cookie header. This fixes a problem observed by users of the Asterisk GUI. (closes AST-20) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114600 f38db490-d61c-443f-a65b-d21fe96a405b
2008-04-23Fix an issue that caused getting the correct next channel to not always work.russell1-1/+1
Also, remove setting the amount of time to wait for a digit from 5 seconds back down to 1/10 of a second. I believe this was so the beep didn't get played over and over really fast, but a while back I put in another fix for that issue. (closes issue #12498) Reported by: jsmith Patches: app_chanspy_channel_walk.trunk.patch uploaded by jsmith (license 15) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@114597 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-11Comment explaining how to force browser to always read some html files from ↵pari1-0/+5
server. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@98372 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-30When serving dynamic content, include a Cache-Control header to instruct therussell1-2/+10
browsers to not store the resulting content. (issue #9621, reported by Pari, patch by me) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@62414 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-11Add "svgz" to the mimetypes table. (issue #9510, bkruse)russell1-5/+7
In passing, constify the elements of the mimetypes table. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@61407 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-10File upload support was added to solve some needs for the Asterisk GUI.russell1-305/+1
However, after much discussion, it has been decided that adding this to 1.4 is not in the best interests of the project. It has been removed here, but will remain in trunk. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@61220 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-08Fix --enable-dev-modetilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60712 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-06To be able to achieve the things that we would like to achieve with therussell1-3/+318
Asterisk GUI project, we need a fully functional HTTP interface with access to the Asterisk manager interface. One of the things that was intended to be a part of this system, but was never actually implemented, was the ability for the GUI to be able to upload files to Asterisk. So, this commit adds this in the most minimally invasive way that we could come up with. A lot of work on minimime was done by Steve Murphy. He fixed a lot of bugs in the parser, and updated it to be thread-safe. The ability to check permissions of active manager sessions was added by Dwayne Hubbard. Then, hacking this all together and do doing the modifications necessary to the HTTP interface was done by me. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60603 f38db490-d61c-443f-a65b-d21fe96a405b
2007-04-05Add the MIME type for gif by request from Parirussell1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@60265 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-21Add svg mimetype for pari.file1-0/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@59089 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-08this change was not needed; fclose() handles closing the file descriptor alreadykpfleming1-2/+0
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58354 f38db490-d61c-443f-a65b-d21fe96a405b
2007-03-08fix two cases where HTTP session file descriptors would not be closedkpfleming1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@58351 f38db490-d61c-443f-a65b-d21fe96a405b
2007-02-20Add the Asterisk version information to the Server header in HTTPrussell1-1/+2
responses. (requested by Pari) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@55634 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-31Merged revisions 53045 via svnmerge from russell1-0/+1
https://origsvn.digium.com/svn/asterisk/branches/1.2 ........ r53045 | russell | 2007-01-31 15:25:11 -0600 (Wed, 31 Jan 2007) | 3 lines Fix a bunch of places where pthread_attr_init() was called, but pthread_attr_destroy() was not. ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@53046 f38db490-d61c-443f-a65b-d21fe96a405b
2007-01-23Fix setting the default port of 8088 on 64-bit or big-endian machines.russell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@51755 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-28saw this in passing... fix a small typoqwell1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49032 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-28make the uris_lock a rwlock instead of a mutex lock - needs to be forward ↵qwell1-11/+11
ported to trunk git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49024 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-27since these variables all have static duration, none of them need ↵kpfleming1-3/+3
initializers (they default to zero anyway) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@49006 f38db490-d61c-443f-a65b-d21fe96a405b
2006-12-23Implement locking for the list of URI handlers to make it thread-safe.russell1-4/+22
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@48931 f38db490-d61c-443f-a65b-d21fe96a405b
2006-11-02Reverse change of "show" to "list" and make several other commands more ↵tilghman1-8/+3
consistent with "category verb arguments" git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@47051 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-24merge 45152 don't leak descriptors in http.crizzo1-17/+22
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@46117 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-18merge from trunk: move ast_variables_destroy() to a betterrizzo1-1/+1
place in handle_uri() to avoid leaking memory on non existing files. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@45464 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-06make sure sockets are blocking when they should be blocking.rizzo1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44567 f38db490-d61c-443f-a65b-d21fe96a405b
2006-10-04update thread creation code a bitkpfleming1-2/+2
reduce standard thread stack size slightly to allow the pthreads library to allocate the stack+data and not overflow a power-of-2 allocation in the kernel and waste memory/address space add a new stack size for 'background' threads (those that don't handle PBX calls) when LOW_MEMORY is defined git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@44378 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-19After discussing this with other people, we decided we'd like to try to do ↵qwell1-43/+43
this a little differently. Stay tuned. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43290 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-195240 updateanthonyl1-43/+43
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43289 f38db490-d61c-443f-a65b-d21fe96a405b
2006-09-18merge qwell's CLI verbification workkpfleming1-7/+13
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@43212 f38db490-d61c-443f-a65b-d21fe96a405b
2006-08-21merge new_loader_completion branch, including (at least):kpfleming1-0/+698
- restructured build tree and makefiles to eliminate recursion problems - support for embedded modules - support for static builds - simpler cross-compilation support - simpler module/loader interface (no exported symbols) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@40722 f38db490-d61c-443f-a65b-d21fe96a405b