platform/upstream/libsoup.git
22 years agoRemove NSS-related code, as this is now moved to libsoup.
Alex Graveley [Fri, 2 Nov 2001 13:01:39 +0000 (13:01 +0000)]
Remove NSS-related code, as this is now moved to libsoup.

2001-11-02  Alex Graveley  <alex@ximian.com>

* src/soup-ssl-proxy/soup-ssl-proxy.c: Remove NSS-related code, as
this is now moved to libsoup.

22 years agoRename killme to cached in _SoupAddress.
Alex Graveley [Fri, 2 Nov 2001 12:48:08 +0000 (12:48 +0000)]
Rename killme to cached in _SoupAddress.

2001-11-02  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-private.h: Rename killme to cached in _SoupAddress.

* src/libsoup/soup-socket-unix.c (soup_address_get_name_cb): Use
g_strndup instead of g_new/strncpy.
(soup_address_new_cb): Set cache status to CACHE_OK on success.
(prune_zeroref_addresses_foreach): Use ia->cached.
(soup_address_unref): Free addresses which are NOT_CACHED.

22 years agoFix typo.
Alex Graveley [Fri, 2 Nov 2001 12:03:06 +0000 (12:03 +0000)]
Fix typo.

22 years agoRemove extraneous return.
Alex Graveley [Fri, 2 Nov 2001 11:58:26 +0000 (11:58 +0000)]
Remove extraneous return.

22 years agoRemove old fixed FIXME.
Alex Graveley [Fri, 2 Nov 2001 11:52:46 +0000 (11:52 +0000)]
Remove old fixed FIXME.

2001-11-02  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-context.c (soup_try_existing_connections):
Remove old fixed FIXME.

* src/libsoup/soup-socket-unix.c
(prune_zeroref_addresses_timeout): Remove timeout if
active_address_hash is null.
(soup_address_unref): Only install timeout handler if the address
has a name, otherwise just free.

22 years agoWindows build fixes and warning smashes.
Alex Graveley [Fri, 2 Nov 2001 01:11:33 +0000 (01:11 +0000)]
Windows build fixes and warning smashes.

* Windows build fixes and warning smashes.

* Add src/libsoup/soup-error.[ch] to build/libsoup.dsp

22 years agoNull terminate recv_buf before copying the data pointer.
Alex Graveley [Thu, 1 Nov 2001 19:05:06 +0000 (19:05 +0000)]
Null terminate recv_buf before copying the data pointer.

2001-11-01  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-transfer.c (issue_final_callback): Null
terminate recv_buf before copying the data pointer.

22 years agoDrop connection count of connect failed. (soup_context_get_connection):
Alex Graveley [Thu, 1 Nov 2001 01:11:00 +0000 (01:11 +0000)]
Drop connection count of connect failed. (soup_context_get_connection):

2001-10-31  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-context.c (soup_context_connect_cb): Drop
connection count of connect failed.
(soup_context_get_connection): Increment connection count before
calling soup_socket_connect() to avoid connection limit being
passed by many messages queued at the same time.

* src/libsoup/soup-server.c (read_done_cb): Assign request's data
buffer to message request buffer, not response.  Caught by Tim
Moloney.

* src/libsoup/soup-transfer.c (soup_transfer_read_cb): Zero
terminate alloca'd header string passed to headers_done_cb.

22 years agoFix the popt check so you can pass CPPFLAGS and LDFLAGS in in the
Dan Winship [Wed, 31 Oct 2001 23:09:27 +0000 (23:09 +0000)]
Fix the popt check so you can pass CPPFLAGS and LDFLAGS in in the

* configure.in: Fix the popt check so you can pass CPPFLAGS and
LDFLAGS in in the environment.

22 years agoRemove the existing SoupAuth from the from the server's valid_auths hash.
Alex Graveley [Tue, 30 Oct 2001 06:29:26 +0000 (06:29 +0000)]
Remove the existing SoupAuth from the from the server's valid_auths hash.

2001-10-30  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-auth.c (soup_auth_set_context): Remove the
existing SoupAuth from the from the server's valid_auths hash.
(soup_auth_new_from_header_list): Fix bug where auth header
evaluation stopped after finding the first matching scheme.

22 years agoConsider existing addresses with a zero refcount valid to return (with an
Alex Graveley [Tue, 30 Oct 2001 05:40:00 +0000 (05:40 +0000)]
Consider existing addresses with a zero refcount valid to return (with an

2001-10-30  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-socket-unix.c (soup_address_new): Consider
existing addresses with a zero refcount valid to return (with an
added refcount).
(prune_zeroref_addresses_foreach): Impl.
(prune_zeroref_addresses_timeout): Impl.
(soup_address_unref): Don't free zero ref addresses, instead make
sure zeroref timeout handler is installed and install if not. Also
move to here from soup-socket.c.

* src/libsoup/soup-private.h: Add killme flag to soup_address.

* src/libsoup/soup-socket-win.c (soup_address_unref): Move here
from soup-socket.c.

22 years agoCall soup_auth_fn if we don't have auth data in the URI, then call
Alex Graveley [Tue, 30 Oct 2001 01:51:16 +0000 (01:51 +0000)]
Call soup_auth_fn if we don't have auth data in the URI, then call

2001-10-29  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-message.c (authorize_handler): Call
soup_auth_fn if we don't have auth data in the URI, then call
soup_auth_initialize if the callback set authenticate data on the
passed uri.

* src/libsoup/soup-auth.h: Make type be SoupAuthType.

* src/libsoup/soup-auth.c (soup_auth_initialize): Impl. To be
called after SoupAuth creation to apply auth data to the
SoupAuth. This allows us to parse the Authenticate headers to
figure out which auth scheme and realm is being used, and pass
this to the auth callback.

* src/libsoup/soup-misc.c (soup_set_authorize_callback): Impl.

* src/libsoup/soup-misc.h: Add SoupAuthType enum here.

* src/libsoup/soup-server.h: Use SoupAuthType. Remove
SoupServerAuthType.

22 years agoInclude soup-error.h
Alex Graveley [Sat, 27 Oct 2001 22:32:09 +0000 (22:32 +0000)]
Include soup-error.h

2001-10-27  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-dav.c: Include soup-error.h

* src/libsoup/soup-queue.c (soup_debug_print_headers): Use
soup_message_foreach_header.

* src/libsoup/soup-message.c (soup_message_new): Default to GET if
method not supplied.
(soup_message_add_header): Remove code to delete header if no
value is supplied.
(soup_message_foreach_remove_header): Impl.
(soup_message_remove_header): Impl.

22 years agoUse WUNTRACED, which should fix possible hang situation.
Alex Graveley [Fri, 26 Oct 2001 10:27:19 +0000 (10:27 +0000)]
Use WUNTRACED, which should fix possible hang situation.

2001-10-26  Alex Graveley  <alex@ximian.com>

        * src/libsoup/soup-socket-unix.c (soup_address_new): Use WUNTRACED,
        which should fix possible hang situation.

        * src/libsoup/soup-transfer.c (issue_chunk_callback): Address bug
        where data buffer passed to chunk callback could be invalid due to
        appending a null. Just don't addend NULL for chunk callbacks.

22 years agoUse soup_uri_set_auth().
Alex Graveley [Fri, 26 Oct 2001 07:38:34 +0000 (07:38 +0000)]
Use soup_uri_set_auth().

2001-10-26  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-message.c (redirect_handler): Use
soup_uri_set_auth().

* src/libsoup/soup-uri.c (soup_uri_free): Don't use g_assert.
(soup_uri_set_auth): Impl.

* src/libsoup/soup-server.c (read_headers_cb): Use
soup_message_set_context().

* src/libsoup/soup-message.c (soup_message_set_context): Impl.
(soup_message_get_context): Impl.
(redirect_handler): Use soup_message_set_context().

22 years agoHandle redirects when source uri has auth data by copying auth to new url.
Alex Graveley [Fri, 26 Oct 2001 03:11:47 +0000 (03:11 +0000)]
Handle redirects when source uri has auth data by copying auth to new url.

2001-10-25  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-message.c (redirect_handler): Handle redirects
when source uri has auth data by copying auth to new url.

22 years agoFixe bug where informational responses were treated as an unknown
Alex Graveley [Fri, 26 Oct 2001 02:25:04 +0000 (02:25 +0000)]
Fixe bug where informational responses were treated as an unknown

2001-10-25  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-queue.c (soup_queue_read_headers_cb): Fixe bug
where informational responses were treated as an unknown encoding,
causing the actual response to be considered part of the
informational response body.

22 years agoFix up the networking library checks to work on Solaris. Check for
Dan Winship [Thu, 25 Oct 2001 19:31:52 +0000 (19:31 +0000)]
Fix up the networking library checks to work on Solaris. Check for

* configure.in: Fix up the networking library checks to work on
Solaris. Check for inet_pton. (Solaris doesn't have inet_aton.)

* src/libsoup/soup-socket-unix.c (soup_address_new): Use inet_pton
instead of inet_aton if available.

22 years agoMake sure we handle G_IO_IN before we handle G_IO_HUP so we don't lose
Joe Shaw [Mon, 22 Oct 2001 20:13:32 +0000 (20:13 +0000)]
Make sure we handle G_IO_IN before we handle G_IO_HUP so we don't lose

2001-10-22  Joe Shaw  <joe@ximian.com>

* src/soup-ssl-proxy/soup-ssl-proxy.c (soup_ssl_proxy_readwrite):
Make sure we handle G_IO_IN before we handle G_IO_HUP so we don't
lose data on the pipe, as you can receive both at the same time.
Ian Peters actually found this, but I am his commit monkey.

22 years agouse new error api
JP Rosevear [Mon, 22 Oct 2001 04:09:56 +0000 (04:09 +0000)]
use new error api

2001-10-22  JP Rosevear  <jpr@ximian.com>

* src/libsoup/soup-dav.c (soup_dav_response_new): use new error
api

* src/libsoup/soup-queue.c (soup_parse_headers): ditto

* src/libsoup/soup-message.c (soup_message_set_error_full): ditto
(soup_message_set_error): ditto

22 years agoReorganize.
Alex Graveley [Sun, 21 Oct 2001 22:54:05 +0000 (22:54 +0000)]
Reorganize.

2001-10-21  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-message.h: Reorganize.

* src/libsoup/Makefile.am (libsoupinclude_HEADERS): Add soup-error.h.
(libsoup_la_SOURCES): Add soup-error.c.

* src/libsoup/soup-error.[ch]: Move SoupKnownErrorCode and
SoupErrorClass defines to here.  Move soup_get_error_phrase and
soup_get_error_class here, and rename to soup_error_get_phrase and
soup_error_get_class.

22 years agoThis is the first attempt at authentication inheritence, it still needs
Alex Graveley [Fri, 19 Oct 2001 21:57:27 +0000 (21:57 +0000)]
This is the first attempt at authentication inheritence, it still needs

2001-10-19  Alex Graveley  <alex@ximian.com>

This is the first attempt at authentication inheritence, it
still needs some work.  Auth headers are always sent no matter
what, auth realms are not respected, and auth data in the uri is
ignored unless an existing auth attempt fails.

* src/libsoup/soup-auth.c (digest_parse_func): Compute a1 hash
"user:realm:passwd:nonce:cnonce" here, to cut down on per-request
overhead. Accept a SoupUri from which to get auth info.
(basic_parse_func): Base64 encode user:passwd here for same
reason. Accept a SoupUri for getting auth info.
(compute_response): Get uri path from message instead of SoupAuth.
(digest_auth_func): Ditto.
(soup_auth_lookup): Impl. Given a context, lookup the SoupAuth of
the nearest parent directory.
(soup_auth_set_context): Impl. Register a SoupAuth to be used for
requests to the context's path and subdirectories.

* src/libsoup/soup-auth.h: Move define of SoupAuth here, in
preparation for making public eventually.

* src/libsoup/soup-queue.c (soup_encode_http_auth): Use
soup_auth_lookup ().
(soup_get_request_header): Don't check the request's uri for auth
info, as a parent context may have a valid registered SoupAuth.

* src/libsoup/soup-message.c (authorize_handler): Use
soup_auth_lookup() to find last (failing) SoupAuth. Use
soup_auth_set_context() to register the created SoupAuth for this
context.

* src/libsoup/soup-message.h: Explicitly define values for soup
transport-level errorcodes, just because.

* src/libsoup/soup-context.c (soup_context_unref): When freeing
the SoupHost parent of this context, free all associated
SoupAuths.

* src/libsoup/soup-private.h: Remove auth pointer from context,
add hashtable of valid auths to SoupAuth.

22 years agoSet encoding out param appropriately. Ditto.
Alex Graveley [Thu, 18 Oct 2001 20:52:29 +0000 (20:52 +0000)]
Set encoding out param appropriately. Ditto.

2001-10-18  Alex Graveley  <alex@ximian.com>

        * src/libsoup/soup-queue.c (soup_queue_read_headers_cb): Set
        encoding out param appropriately.
        * src/libsoup/soup-server.c (soup_httpd_read_headers_cb): Ditto.

        * src/libsoup/soup-transfer.h: Add SoupTransferEncoding enum.

        * src/libsoup/soup-transfer.c (soup_transfer_read_error_cb):
        Handle unknown encoding by issuing the read_done callback when the
        connection is closed.
        (issue_chunk_callback): Pass in a cancelled arg to simplify code.
        (read_unknown): Impl. Same as read_content_length () except never
        return TRUE.
        (soup_transfer_read_cb): Make headers_done_cb take an encoding out
        parameter to avoid magic values in content_length. Switch on
        encoding to see if read completed. Use issue_final_callback ().

22 years agothe array length assertion should be >= rather than less than.
JP Rosevear [Thu, 18 Oct 2001 14:46:01 +0000 (14:46 +0000)]
the array length assertion should be >= rather than less than.

2001-10-18  JP Rosevear  <jpr@ximian.com>

* src/libsoup/soup-transfer.c (remove_block_at_index): the array
length assertion should be >= rather than less than.

22 years agoDon't call chunk callback if there is no new data.
Alex Graveley [Wed, 17 Oct 2001 21:54:03 +0000 (21:54 +0000)]
Don't call chunk callback if there is no new data.

2001-10-17  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-transfer.c (read_content_length): Don't call
chunk callback if there is no new data.

22 years agoAdd some bounds checking.
Alex Graveley [Wed, 17 Oct 2001 18:03:22 +0000 (18:03 +0000)]
Add some bounds checking.

2001-10-17  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-transfer.c (remove_block_at_index): Add some
bounds checking.

* src/libsoup/soup-queue.c (soup_queue_connect_cb): Handle
iochannel creation failure which can happen when using SSL.

22 years agoImpl. (remove_block_at_index): Impl. (decode_chunk): Simplify using
Alex Graveley [Tue, 16 Oct 2001 18:49:59 +0000 (18:49 +0000)]
Impl. (remove_block_at_index): Impl. (decode_chunk): Simplify using

2001-10-16  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-transfer.c (decode_hex): Impl.
(remove_block_at_index): Impl.
(decode_chunk): Simplify using utility functions.
(soup_transfer_read_cb): Use remove_block_at_index.
(read_chunk): Ditto.

22 years agoA NULL passwd is perfectly valid, so we want to avoid crashing if that is
Joe Shaw [Tue, 16 Oct 2001 17:07:09 +0000 (17:07 +0000)]
A NULL passwd is perfectly valid, so we want to avoid crashing if that is

2001-10-16  Joe Shaw  <joe@ximian.com>

* src/libsoup/soup-auth.c (compute_response): A NULL passwd is
perfectly valid, so we want to avoid crashing if that is the case.

22 years agoFix nasty chunked encoding bug when the message is set to truncate chunks.
Alex Graveley [Tue, 16 Oct 2001 12:18:40 +0000 (12:18 +0000)]
Fix nasty chunked encoding bug when the message is set to truncate chunks.

2001-10-16  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-transfer.c (decode_chunk): Fix nasty chunked
encoding bug when the message is set to truncate chunks. Code
reorg to be a lot cleaner.

* src/libsoup/soup-ntlm.c: Move alloca #define-foo to:
* src/libsoup/soup-private.h: Here.

* src/libsoup/soup-uri.c (soup_uri_to_string): Handle the case
where path does not begin with a '/'.

* src/libsoup/soup-server.c (soup_server_free): Use foreach_remove.

22 years agoAssign source connection correctly.
Alex Graveley [Tue, 9 Oct 2001 23:08:08 +0000 (23:08 +0000)]
Assign source connection correctly.

2001-10-09  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-socks.c (soup_connect_socks_proxy): Assign
source connection correctly.

22 years agodon't call __uri_exists as __is_collection should check this.
Alex Graveley [Tue, 9 Oct 2001 20:48:48 +0000 (20:48 +0000)]
don't call __uri_exists as __is_collection should check this.

2001-10-09  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-dav-server.c (parent_exists): don't call
__uri_exists as __is_collection should check this.

22 years agoExplicitly add libplc4 and libplds4 which are dependencies of libnspr4.
Alex Graveley [Sat, 6 Oct 2001 22:31:05 +0000 (22:31 +0000)]
Explicitly add libplc4 and libplds4 which are dependencies of libnspr4.

2001-10-06  Alex Graveley  <alex@ximian.com>

* configure.in (enable_nss): Explicitly add libplc4 and libplds4
which are dependencies of libnspr4.

* src/libsoup/Makefile.am (libsoup_la_LIBADD): Link with NSS libs.
(libsoup_la_SOURCES): Add soup-nss.[ch].

* src/libsoup/soup-nss.c: Added. GIOChannel wrapper for Mozills NSS.

* src/libsoup/soup-ssl.c: Use NSS if available to avoid out of
process SSL proxy.

* src/soup-ssl-proxy/Makefile.am (soup_ssl_proxy_SOURCES): Remove
soup-nss.[ch].
(soup_ssl_proxy_LDADD): Do not link NSS libs, as these are now
linked directly into libsoup.

22 years agoImpl. Use instead of custom header free funcs throughout.
Alex Graveley [Fri, 5 Oct 2001 19:35:37 +0000 (19:35 +0000)]
Impl. Use instead of custom header free funcs throughout.

2001-10-05  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-message.c (soup_message_clear_headers):
Impl. Use instead of custom header free funcs throughout.
(soup_message_foreach_header): Impl.
(global_handlers): Handle redirects before authenticating.
(redirect_handler): Use soup_message_get_header.
(run_handler): Ditto.

22 years agoUgg. Don't call waitpid with NOHANG. Avoid zombies. Gain friends.
Alex Graveley [Thu, 4 Oct 2001 18:18:05 +0000 (18:18 +0000)]
Ugg. Don't call waitpid with NOHANG. Avoid zombies. Gain friends.

2001-10-04  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-socket-unix.c (soup_address_new_cb): Ugg. Don't
call waitpid with NOHANG. Avoid zombies. Gain friends.

22 years agoCall soup_message_get_header_list.
Alex Graveley [Thu, 4 Oct 2001 17:05:09 +0000 (17:05 +0000)]
Call soup_message_get_header_list.

2001-10-04  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-message.c (authorize_handler): Call
soup_message_get_header_list.

* src/libsoup/soup-auth.c (soup_auth_new_from_header_list): Set
crypto strength for authentication types, and try to choose the
strongest when authenticating.

* src/libsoup/soup-queue.c (soup_check_used_headers): Kill warnings.

* tests/simple-test.c (list_headers): Handle multiple values for
header.

* tests/handler-test.c (list_headers): Ditto.

22 years agoFix const warnings.
Alex Graveley [Thu, 4 Oct 2001 15:39:25 +0000 (15:39 +0000)]
Fix const warnings.

2001-10-04  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-server.c (read_headers_cb): Fix const warnings.

22 years agoDon't create response_headers. This is done in soup_message_new. Use
Alex Graveley [Thu, 4 Oct 2001 15:23:15 +0000 (15:23 +0000)]
Don't create response_headers. This is done in soup_message_new. Use

2001-10-04  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-server.c (read_headers_cb): Don't create
response_headers. This is done in soup_message_new. Use
soup_message_get_header throughout.

* src/libsoup/soup-queue.c (soup_check_used_headers): Write list
of headers.
(soup_parse_headers): Don't create response_headers. This is done
in soup_message_new.
(soup_debug_print_a_header): Handle multiple header vals.
(soup_check_used_headers): Ditto.
(soup_queue_remove_header): Ditto.
(soup_queue_message): Don't destroy hashtable, just clear it.
Use soup_message_get_header throughout.

22 years agoHandle multiple values in header hash tables. (free_header): Free the list
Alex Graveley [Thu, 4 Oct 2001 14:43:35 +0000 (14:43 +0000)]
Handle multiple values in header hash tables. (free_header): Free the list

2001-10-04  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-message.c (soup_message_add_header): Handle
multiple values in header hash tables.
(free_header): Free the list of values.
(soup_message_new): Create request_headers and response_headers
here instead of on header insertion.
(soup_message_set_request_header): Deprecate.
(soup_message_get_request_header): Deprecate.
(soup_message_set_response_header): Deprecate.
(soup_message_get_response_header): Deprecate.

* src/libsoup/soup-dav-server.c: Update to use new header get/add
funcs.

* src/libsoup/soup-headers.c (soup_headers_parse): Store headers
as a GSList of values.

22 years agoThe @ in http://foo/bar@baz is part of the path, not the username/hostname
Dan Winship [Wed, 3 Oct 2001 21:31:26 +0000 (21:31 +0000)]
The @ in foo/bar@baz is part of the path, not the username/hostname

* src/libsoup/soup-uri.c (soup_uri_new): The @ in
http://foo/bar@baz is part of the path, not the username/hostname
split.

22 years agoFix HAVE_OPENSSL and HAVE_NSS checks as these were always being defined.
Alex Graveley [Tue, 2 Oct 2001 01:29:44 +0000 (01:29 +0000)]
Fix HAVE_OPENSSL and HAVE_NSS checks as these were always being defined.

2001-10-01  Alex Graveley  <alex@ximian.com>

* configure.in: Fix HAVE_OPENSSL and HAVE_NSS checks as these were
always being defined.

22 years agoAdd defines for SOUP_PTRACE_ATTACH and SOUP_PTRACE_DETACH to remove
Alex Graveley [Tue, 2 Oct 2001 00:52:54 +0000 (00:52 +0000)]
Add defines for SOUP_PTRACE_ATTACH and SOUP_PTRACE_DETACH to remove

2001-10-01  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-socket-unix.c (soup_address_new): Add defines
for SOUP_PTRACE_ATTACH and SOUP_PTRACE_DETACH to remove
architecture incompatibilities for ptrace() arguments.

* configure.in: Add libdl to OpenSSL LDFLAGS.  Fix NSS header
paths.  Define HAVE_OPENSSL and HAVE_NSS if the libraries are
found successfully.

* src/libsoup/soup-socket.h: Remove soup_gethostbyname and
soup_gethostbyaddr, and move to:
* src/libsoup/soup-private.h: here.

22 years agoRemove redundant alloca define.
Alex Graveley [Sat, 29 Sep 2001 04:34:06 +0000 (04:34 +0000)]
Remove redundant alloca define.

2001-09-28  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-ntlm.c: Remove redundant alloca define.

* src/libsoup/soup-socket.c (soup_socket_server_new): Use
SOUP_SOCKET_CLOSE.

* src/libsoup/soup-socket.h: Include winsock.h if windows.

22 years agoFix copyright notice. Ditto. Ditto.
Alex Graveley [Sat, 29 Sep 2001 03:59:16 +0000 (03:59 +0000)]
Fix copyright notice. Ditto. Ditto.

2001-09-28  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-socket-win.c: Fix copyright notice.
* src/libsoup/soup-socket-unix.c: Ditto.
* src/libsoup/soup-socket.c: Ditto.

22 years agoForget to commit.
Alex Graveley [Sat, 29 Sep 2001 03:44:49 +0000 (03:44 +0000)]
Forget to commit.

22 years agoAdd soup-socket-win.c.
Alex Graveley [Sat, 29 Sep 2001 01:03:53 +0000 (01:03 +0000)]
Add soup-socket-win.c.

2001-09-28  Alex Graveley  <alex@ximian.com>

* build/libsoup.dsp (SOURCE): Add soup-socket-win.c.

* tests/simple-test.c (main): Take HTTP method and body parameters
to use in the request.

* src/libsoup/soup-socket.h: Make soup_gethostbyname and
soup_gethostbyaddr public.

* src/libsoup/soup-socket-unix.c: Added, split of networking code
into unix-specific sections.

* src/libsoup/soup-socket-win.c: Added, Windows networking code.

* src/libsoup/soup-socket.c: Holds common socket functions.

22 years agoFix typo.
Alex Graveley [Thu, 27 Sep 2001 17:39:14 +0000 (17:39 +0000)]
Fix typo.

22 years agoRemove Glib workarounds for Windows socket io.
Alex Graveley [Thu, 27 Sep 2001 17:18:49 +0000 (17:18 +0000)]
Remove Glib workarounds for Windows socket io.

2001-09-27  Alex Graveley  <alex@ximian.com>

        * src/libsoup/soup-socket.c: Remove Glib workarounds for Windows
        socket io.

22 years ago#ifdef protect the ptrace attach/detach code until I have a chance to look
Alex Graveley [Thu, 27 Sep 2001 15:21:40 +0000 (15:21 +0000)]
#ifdef protect the ptrace attach/detach code until I have a chance to look

2001-09-27  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-socket.c (soup_address_new): #ifdef protect the
ptrace attach/detach code until I have a chance to look at why it
fails on some platforms.

22 years agoUpdate for new exports.
Alex Graveley [Thu, 27 Sep 2001 14:35:47 +0000 (14:35 +0000)]
Update for new exports.

2001-09-27  Alex Graveley  <alex@ximian.com>

* build/libsoup.def: Update for new exports.

22 years agoFix constness for get_dav_prop and get_custom_prop.
Alex Graveley [Thu, 27 Sep 2001 07:56:53 +0000 (07:56 +0000)]
Fix constness for get_dav_prop and get_custom_prop.

2001-09-27  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-dav-server.h: Fix constness for get_dav_prop
and get_custom_prop.

22 years agoFix this to not return immediately after parsing the first line of the
Dan Winship [Wed, 19 Sep 2001 14:48:23 +0000 (14:48 +0000)]
Fix this to not return immediately after parsing the first line of the

* src/libsoup/soup-message.c (soup_message_send): Fix this to not
return immediately after parsing the first line of the response.
(Needed an update for the 09-07 api changes.)

22 years agoAdded soup_address_copy(). Changed soup_address_new to check whether the
Vladimir Vukicevic [Mon, 17 Sep 2001 17:24:57 +0000 (17:24 +0000)]
Added soup_address_copy(). Changed soup_address_new to check whether the

* src/libsoup/soup-socket.c, src/libsoup/soup-socket.h:
Added soup_address_copy().  Changed soup_address_new to check
whether the ports are the same before using a cached
address.

22 years agoReturn const string.
Alex Graveley [Fri, 14 Sep 2001 23:53:15 +0000 (23:53 +0000)]
Return const string.

2001-09-14  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-serializer.c
(soup_serializer_get_namespace_prefix): Return const string.

* Makefile.am (EXTRA_DIST): Install soup.m4.

* src/libwsdl/wsdl-soap-marshal.c:
* src/libwsdl/wsdl-typecodes.c:
* src/soup-wsdl/wsdl-parse.c: Formatting.

22 years agoImpl.
Alex Graveley [Thu, 13 Sep 2001 06:36:14 +0000 (06:36 +0000)]
Impl.

2001-09-13  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-serializer.c
(soup_serializer_get_namespace_prefix): Impl.

22 years agoPass protocol to soup_server_new. Ditto.
Alex Graveley [Wed, 12 Sep 2001 23:33:40 +0000 (23:33 +0000)]
Pass protocol to soup_server_new. Ditto.

2001-09-12  Alex Graveley  <alex@ximian.com>

* tests/filesys-server.c (main): Pass protocol to soup_server_new.
* tests/server-test.c (main): Ditto.

* src/soup-wsdl/Makefile.am (soup_wsdl_LDADD): Remove libwsdl.so
link.

* src/libwsdl/Makefile.am (libwsdl_build_a_SOURCES): Include
libwsdl.so sources in libwsdl-build.a so libtool 1.3.5 doesn't
ill.  Remove libwsdl_build_a_LIBADD.

* src/libsoup/soup-server.c (soup_server_new): Take a SoupProtocol
argument.

* src/libsoup/soup-dav-server.c (move_copy): Serialize multi-status.
(i_copy): Fix bug where directory contents were sometimes created
before parent. Add multi-status error reporting.

* src/libsoup/soup-dav.c (soup_dav_response_new): Remove
response_phrase param.

22 years agoRewrite to correctly handle rollback and propstat result. Fill in missing
Alex Graveley [Tue, 11 Sep 2001 11:01:48 +0000 (11:01 +0000)]
Rewrite to correctly handle rollback and propstat result. Fill in missing

2001-09-11  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-dav-server.c (dav_proppatch): Rewrite to
correctly handle rollback and propstat result.  Fill in missing
response errors throughout.

22 years agoRemove windows \r newlines
Alex Graveley [Tue, 11 Sep 2001 02:12:58 +0000 (02:12 +0000)]
Remove windows \r newlines

22 years agoBuild fixes for Windows.
Alex Graveley [Tue, 11 Sep 2001 02:06:47 +0000 (02:06 +0000)]
Build fixes for Windows.

22 years agoRename from mod-server-test to be obvious that its a script which simply
Alex Graveley [Tue, 11 Sep 2001 01:19:13 +0000 (01:19 +0000)]
Rename from mod-server-test to be obvious that its a script which simply

2001-09-10  Alex Graveley  <alex@ximian.com>

* tests/mod-server-test.sh: Rename from mod-server-test to be
obvious that its a script which simply executes soup-httpd.

22 years agoFix typo.
Alex Graveley [Tue, 11 Sep 2001 01:13:31 +0000 (01:13 +0000)]
Fix typo.

2001-09-10  Alex Graveley  <alex@ximian.com>

* build/soup_httpd.dsp (SOURCE): Fix typo.

* build/libsoup.dsp: Add src/libsoup/soup-ntlm.[ch]
(SOURCE): Remove soup-apache.c

22 years agoAdd src/libsoup/soup-ntlm.[ch]
Alex Graveley [Tue, 11 Sep 2001 00:45:49 +0000 (00:45 +0000)]
Add src/libsoup/soup-ntlm.[ch]

2001-09-10  Alex Graveley  <alex@ximian.com>

* build/libsoup.dsp: Add src/libsoup/soup-ntlm.[ch]

* src/libsoup/soup-dav-server.c (dav_mkcol): Report errors.  Check
that parent path exists.
(dav_put): Ditto.
(dav_options): set 404 if path not found.
(dav_options): Handle server-level OPTIONS requests.
(parent_exists): impl.

22 years agoReplace opt_search with opt_other. Remove SOUP_DAV_SEARCH.
Alex Graveley [Mon, 10 Sep 2001 22:51:06 +0000 (22:51 +0000)]
Replace opt_search with opt_other. Remove SOUP_DAV_SEARCH.

2001-09-10  Alex Graveley  <alex@ximian.com>

* src/libsoup/soup-dav-server.h: Replace opt_search with
opt_other.  Remove SOUP_DAV_SEARCH.

* src/libsoup/soup-dav-server.c: Replace dav_search with
dav_other.

22 years agoRemvoe newly added features
Alex Graveley [Mon, 10 Sep 2001 22:27:44 +0000 (22:27 +0000)]
Remvoe newly added features

22 years agoShuffle features
Alex Graveley [Mon, 10 Sep 2001 22:25:03 +0000 (22:25 +0000)]
Shuffle features

22 years agoFix typo
Alex Graveley [Mon, 10 Sep 2001 22:22:27 +0000 (22:22 +0000)]
Fix typo

22 years agoPass authtypes param to soup_server_register. Ditto. Ditto.
Alex Graveley [Mon, 10 Sep 2001 22:15:30 +0000 (22:15 +0000)]
Pass authtypes param to soup_server_register. Ditto. Ditto.

2001-09-10  Alex Graveley  <alex@ximian.com>

* tests/cgi-test.c (main): Pass authtypes param to
soup_server_register.
* tests/server-test.c (main): Ditto.
* tests/mod-server-test.c (soup_server_init): Ditto.

* tests/stockquote2.wsdl: Format fixes.

22 years agoRewritten for the new apis, and to be more clean, and to have many
Alex Graveley [Sat, 8 Sep 2001 02:20:49 +0000 (02:20 +0000)]
Rewritten for the new apis, and to be more clean, and to have many

2001-09-07  Alex Graveley  <alex@ximian.com>

* tests/stress-test.c: Rewritten for the new apis, and to be more
clean, and to have many settings for varying simultaneous
messages, message counts, iterations, posting of data, etc.

* tests/simple-test.c: Rewritten for the new apis, and to be more
clean.

* tests/server-test.c (main): Added. Simple test for standalone
dynamic servers.

* tests/mod-server-test.c (callback): Added. Simple test for
soup-httpd/apache server modules.

* tests/handler-test.c: Added. Stress test for SoupMessage
handlers.

* tests/cgi-test.c: Added. Simple test for CGI serving.

* src/soup-httpd/soup-httpd.c: Use libsoup's SoupServer code for
all request processing. soup-httpd becomes a wrapper for module
loading and logging.

* src/libwsdl/Makefile.am (INCLUDES): Remove WSDL_CFLAGS.

* src/libsoup/soup-socket.c (soup_socket_server_accept): Set
O_NONBLOCK on the returned SoupSocket.
(soup_socket_server_try_accept): Ditto.

* src/libsoup/soup-server.c: Reimplement for independent
SoupServer support.  Remove separate authorization handler
concept. Process based on request paths. Import code from
soup-httpd to allow standalone dynamic servers, and cgi support.

* src/libsoup/soup-queue.c (soup_check_used_headers): Remove
special handling of SOAPAction.
(soup_queue_connect_cb): Start listening for reads immediately so
that we cna process HTTP 1xx intermediate responses.
(soup_queue_message): Rename from soup_message_queue.
soup_message_queue is now in soup-message.c and simply calls this.

* src/libsoup/soup-private.h (RESPONSE_BLOCK_SIZE): Rename
existing SoupServer to SoupHost.  Create new SoupServer struct.
Add server and server_sock elements to SoupMessagePrivate.  Move
SoupServerHandler definition to soup-server.h.  Move define for
soup_queue_shutdown to new soup-queue.h.

* src/libsoup/soup-ntlm.c: Add mojo for getting a portable alloca.

* src/libsoup/soup-message.h: Remove SoupErrorCode. Add
SoupKnownErrorCode and SoupErrorClass enums. Add
SOUP_ERROR_CANT_CONNECT_PROXY and
SOUP_ERROR_CANT_AUTHENTICATE_PROXY for errors related directly to
proxy communications.

* src/libsoup/soup-message.c (soup_message_new): Take the HTTP
method name as the second argument.  Remove per-message handlers
for authentication and redirection.
(soup_message_issue_callback): Uses finalize_message to avoid
double cleanup.  Remove error argument, as they should be set
using soup_message_set_error.
(soup_message_run_handlers): Run per-message handlers followed by
global handlers, if a handler requeues a message we stop
processing.  If the invoke_type is POST_BODY, we issue the final
callback.
(soup_message_remove_handler): Make public.
(soup_message_set_error): Impl
(soup_message_set_error_full): Impl
(soup_message_set_handler_error): Impl
(soup_get_error_phrase): Impl
(soup_get_error_class): Impl

* src/libsoup/soup-dav-server.c: Add a reference to the SoupServer
we are registered with. Use soup_message_set_error throughout.
(i_copy): Fix assignment causing this loop to never run.
(soup_dav_server_register): Add SoupServer and required authtypes
parameters.

* src/libsoup/soup-context.c: Replace references to SoupServer
with SoupHost, so we don't clash with the SoupServer from
soup-server.h.  Rename soup_servers to soup_hosts.

* src/libsoup/Makefile.am (libsoup_la_SOURCES): Add soup-queue.h.

* configure.in (SOUP_CURRENT): Add some helpful comments and bump
to '3'.  Bump version to 0.5.99 (0.6 development).  Use
AC_FUNC_ALLOCA instead of just checking for alloca.h.  Remove
WSDL_CFLAGS.

22 years agoLink with libwsdl.so and libwsdl-build.a.
Alex Graveley [Thu, 30 Aug 2001 04:45:55 +0000 (04:45 +0000)]
Link with libwsdl.so and libwsdl-build.a.

2001-08-30  Alex Graveley  <alex@ximian.com>

* src/soup-wsdl/Makefile.am (soup_wsdl_LDADD): Link with
libwsdl.so and libwsdl-build.a.

* src/libwsdl/Makefile.am (libwsdlinclude_HEADERS): Dont install
wsdl-typecodes-c.h. Make libwsdl-build a static lib.
(libwsdl_build_a_SOURCES): Remove everthing but wsdl-typecodes-c.[ch].
(libwsdl_build_a_LIBADD): Depend on libwsdl.

22 years agoUpdate for new layout.
Alex Graveley [Wed, 29 Aug 2001 23:13:32 +0000 (23:13 +0000)]
Update for new layout.

2001-08-29  Alex Graveley  <alex@ximian.com>

* build/soup_ssl_proxy.dsp:
* build/soup_httpd.dsp:
* build/libsoupwsdl.dsp:
* build/libsoupapache.dsp:
* build/libsoup.dsp: Update for new layout.

22 years agoFix headers for new layout. Ditto.
Alex Graveley [Wed, 29 Aug 2001 23:01:38 +0000 (23:01 +0000)]
Fix headers for new layout. Ditto.

2001-08-29  Alex Graveley  <alex@ximian.com>

* src/*/*.h: Fix headers for new layout.
* tests/*.c: Ditto.

* tests/Makefile.am (LDFLAGS): Use libtool to link with built
libsoup and libwsdl.
(libstockquote2_la_LIBADD): Ditto for libsoup-apache.

* tests/stockquote2.wsdl: Indent prettily.

* src/Makefile.am (SUBDIRS): Update for new source layout.

* configure.in (SOUP_INCLUDEDIR): Use @includedir@/soup.
(SOUP_WSDL_LIBS): include $SOUP_LIBS.
(CFLAGS): Add Makefiles for new layout.

* soup-config.in: Use @includedir@/soup.

* soup.pc.in (Cflags): Use @includedir@/soup.

22 years agoPerform deep unix magic in order to identify if we are running in a SOUP_0_4 SOUP_0_5
Alex Graveley [Tue, 28 Aug 2001 17:58:05 +0000 (17:58 +0000)]
Perform deep unix magic in order to identify if we are running in a

2001-08-28  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-socket.c (soup_address_new): Perform deep
unix magic in order to identify if we are running in a
debugger. This is needed because gdb causes segfaults in child
processes that load shlibs due to breakpoints being left over in
the new unwatched process. Now, gethostbyname() loads shared libs
to do name resolution on many unixes, which would cause soup to be
hard to use and otherwise suck when run inside a debugger. So now
everything works perfectly both inside and outside of gdb.
(soup_address_new_cb): Resolve the hostname syncronously if we are
inside a debugger.

22 years agoRemove mega FIXME.
Alex Graveley [Tue, 28 Aug 2001 13:21:33 +0000 (13:21 +0000)]
Remove mega FIXME.

2001-08-28  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-context.c (soup_try_existing_connections):
Remove mega FIXME.

* src/soup-core/soup-queue.c (soup_queue_read_headers_cb): If the
response server is HTTP 1.0, default to non-persistent connections.

* src/soup-core/soup-httpd.c (soup_httpd_read_headers_cb): Store
http version for incoming message.

* src/soup-core/soup-headers.c (soup_headers_parse_response):
Support returning the http version.
(soup_headers_parse_request): Ditto.

22 years agoRewrite HEX decoding to hopefully be easier to understand and maintain.
Alex Graveley [Tue, 28 Aug 2001 08:45:07 +0000 (08:45 +0000)]
Rewrite HEX decoding to hopefully be easier to understand and maintain.

2001-08-28  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-transfer.c (soup_transfer_read_chunk):
Rewrite HEX decoding to hopefully be easier to understand and maintain.

* src/soup-core/soup-message.c (redirect_handler): Don't unref the
old context until after we requeue the message using the new
context, as we may still have a connection from the old one.

22 years agoSet the compare func on the returned object.
Alex Graveley [Tue, 28 Aug 2001 01:22:23 +0000 (01:22 +0000)]
Set the compare func on the returned object.

2001-08-27  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-auth.c (soup_auth_new_digest): Set the
compare func on the returned object.

22 years agoJust return NULL from this function for now. There are some bugs in it.
Joe Shaw [Tue, 28 Aug 2001 01:17:32 +0000 (01:17 +0000)]
Just return NULL from this function for now. There are some bugs in it.

2001-08-27  Joe Shaw  <joe@ximian.com>

* src/soup-core/soup-context.c (soup_try_existing_connections):
Just return NULL from this function for now. There are some bugs
in it. Added a big, triple FIXME.

22 years agoforgot to commit this
Joe Shaw [Mon, 27 Aug 2001 20:22:54 +0000 (20:22 +0000)]
forgot to commit this

22 years agoFormat fixes. Format fixes.
Alex Graveley [Mon, 27 Aug 2001 01:38:51 +0000 (01:38 +0000)]
Format fixes. Format fixes.

2001-08-26  Alex Graveley  <alex@ximian.com>

* src/soup-wsdl/*: Format fixes.
* src/soup-wsdl-runtime/*: Format fixes.

22 years agoimpl. (soup_config_ssl_ca_directory): impl. (soup_config_ssl_certificate):
Alex Graveley [Sun, 26 Aug 2001 20:23:47 +0000 (20:23 +0000)]
impl. (soup_config_ssl_ca_directory): impl. (soup_config_ssl_certificate):

2001-08-26  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-misc.c (soup_config_ssl_ca_file): impl.
(soup_config_ssl_ca_directory): impl.
(soup_config_ssl_certificate): impl.
Add config file support for client certificates.

22 years agoimpl. (soup_set_ssl_ca_dir): impl. (soup_set_ssl_cert_files): impl.
Alex Graveley [Sun, 26 Aug 2001 08:22:27 +0000 (08:22 +0000)]
impl. (soup_set_ssl_ca_dir): impl. (soup_set_ssl_cert_files): impl.

2001-08-26  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-misc.c (soup_set_ssl_ca_file): impl.
(soup_set_ssl_ca_dir): impl.
(soup_set_ssl_cert_files): impl.

* src/soup-core/soup-openssl.c (soup_openssl_init): Load cert
authority files found in HTTPS_CA_DIR and HTTPS_CA_FILE.
(soup_openssl_get_iochannel): Load certificate found in
HTTPS_CERT_FILE and private key from file in
HTTPS_KEY_FILE. Client certificates thanks to Scott Hutton
(shutton@pobox.com).

22 years agoAlways regenerate req->priv->req_header.
Alex Graveley [Sat, 25 Aug 2001 01:47:30 +0000 (01:47 +0000)]
Always regenerate req->priv->req_header.

2001-08-24  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-queue.c (soup_queue_connect_cb): Always
regenerate req->priv->req_header.

* src/soup-core/soup-ntlm.c (soup_ntlm_lanmanager_hash): pass 15
byte buffer to work around array bounds read by setup_schedule.

* src/soup-core/soup-message.c (authorize_handler): No need to
free msg->priv->req_header as it is generated on each request now.
(soup_message_set_request_header): Ditto.

* src/soup-core/soup-auth.c (ntlm_auth): Only return
auth->response one time. Subsequent calls return NULL.

* src/soup-core/soup-queue.c (soup_encode_http_auth): Check for
NULL auth response.

22 years agoFix under-allocation. (ntlm_parse): Comment out the NTLM host/domain
Alex Graveley [Thu, 23 Aug 2001 10:17:02 +0000 (10:17 +0000)]
Fix under-allocation. (ntlm_parse): Comment out the NTLM host/domain

2001-08-23  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-auth.c (ntlm_new): Fix under-allocation.
(ntlm_parse): Comment out the NTLM host/domain parsing code, as it
segfaults for some reason. Not that this matters as IIS seems to
competely ignore these parts of the NTLM message :) There is also
some memory corruption in soup-ntlm.c causing segfaults after the
message-finished callback returns.

22 years agoAdd SoupAuth.compare_func and call this from here, to remove hardcoded
Alex Graveley [Thu, 23 Aug 2001 07:52:55 +0000 (07:52 +0000)]
Add SoupAuth.compare_func and call this from here, to remove hardcoded

2001-08-23  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-auth.c (soup_auth_invalidates_prior): Add
SoupAuth.compare_func and call this from here, to remove hardcoded
auth scheme knowledge.
(soup_auth_new_from_header): Iterate known_auth_schemes looking
for a match with auth scheme supplied, instead of hardcoding known
auth schemes.

22 years agoTake an old_auth argument, if auth_types do not match always return TRUE.
Alex Graveley [Thu, 23 Aug 2001 07:18:57 +0000 (07:18 +0000)]
Take an old_auth argument, if auth_types do not match always return TRUE.

2001-08-23  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-auth.c (soup_auth_invalidates_prior): Take an
old_auth argument, if auth_types do not match always return
TRUE. This allows for a server requested re-auth with a different
auth mechanism.

22 years agoMicrosoft NTLM authentication support compliments of Dan Winship
Alex Graveley [Thu, 23 Aug 2001 07:01:57 +0000 (07:01 +0000)]
Microsoft NTLM authentication support compliments of Dan Winship

2001-08-23  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-ntlm.[ch]: Microsoft NTLM authentication
support compliments of Dan Winship (danw@ximian.com).

* src/soup-core/Makefile.am (libsoup_la_SOURCES): Add soup-ntlm.[ch]

* src/soup-core/soup-auth.c (soup_auth_new_from_header): Set auth
context before header parsing. Add NTLM case. Call
auth->parse_func instead of hardcoding.
(soup_auth_invalidates_prior): add NTLM, which should always
invalidate.
(ntlm_new): impl.
(ntlm_free): impl.
(ntlm_parse): impl. Hack to get domain from the uri's authmech
field.
(ntlm_auth): impl.

* src/soup-core/soup-dav-server.c (get_depth): return 0 for
unknown value.

* src/soup-core/soup-server.h: Remove SoupServerAnonymousToken and
add SoupServerNTLMToken.

22 years agoUpdate Chris Blizzard's email address.
Alex Graveley [Thu, 23 Aug 2001 02:28:05 +0000 (02:28 +0000)]
Update Chris Blizzard's email address.

22 years agoBump up version to 0.4.4 Ditto.
Joe Shaw [Mon, 20 Aug 2001 20:13:26 +0000 (20:13 +0000)]
Bump up version to 0.4.4 Ditto.

2001-08-20  Joe Shaw  <joe@ximian.com>

* configure.in: Bump up version to 0.4.4
* src/soup-core/soup-private.h: Ditto.

* src/soup-core/soup-auth.c (compute_response, digest_auth_func):
Instead of just passing uri->path, pass
uri->path + '?' + uri->querystring if present.

22 years agoUpdate for DAV methods.
Alex Graveley [Fri, 17 Aug 2001 20:01:05 +0000 (20:01 +0000)]
Update for DAV methods.

2001-08-17  Alex Graveley  <alex@ximian.com>

* build/libsoup.def: Update for DAV methods.

22 years agoOops.
Alex Graveley [Fri, 17 Aug 2001 18:46:20 +0000 (18:46 +0000)]
Oops.

22 years agoInitial WebDAV server support.
Alex Graveley [Fri, 17 Aug 2001 18:44:23 +0000 (18:44 +0000)]
Initial WebDAV server support.

2001-08-17  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-dav-server.[ch]: Initial WebDAV server
support.

* src/soup-core/soup-dav.[ch]: Beginnings of WebDAV client
support.

* configure.in: Add warning about updating
src/soup-core/soup-private.h when version changes.

* src/soup-core/soup-private.h: Declare SoupAuth here, so
including is possible.

22 years agoConnect to HUP signal to avoid indefinate hangs. Remove idle waitpid
Alex Graveley [Sun, 12 Aug 2001 08:03:11 +0000 (08:03 +0000)]
Connect to HUP signal to avoid indefinate hangs. Remove idle waitpid

2001-08-12  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-ssl.c (soup_ssl_get_iochannel): Connect to
HUP signal to avoid indefinate hangs. Remove idle waitpid
handler. Thanks to Chris Toshok for finding this one.

22 years agoFix typo causes O_NONBLOCK to to be set.
Alex Graveley [Sat, 11 Aug 2001 07:18:59 +0000 (07:18 +0000)]
Fix typo causes O_NONBLOCK to to be set.

2001-08-11  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-ssl-proxy.c (main): Fix typo causes
O_NONBLOCK to to be set.

* src/soup-core/soup-ssl.c (soup_ssl_get_iochannel): Ditto.

22 years agoInclude sys/socket.h for sa in SoupAddress.
Alex Graveley [Fri, 10 Aug 2001 04:03:11 +0000 (04:03 +0000)]
Include sys/socket.h for sa in SoupAddress.

2001-08-10  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-private.h: Include sys/socket.h for sa in
SoupAddress.

22 years agoBump version to 0.4.3.
Alex Graveley [Thu, 9 Aug 2001 01:43:33 +0000 (01:43 +0000)]
Bump version to 0.4.3.

2001-08-08  Alex Graveley  <alex@ximian.com>

* configure.in: Bump version to 0.4.3.

22 years agoHandle entity headers after chunk body, closes bug #6846.
Alex Graveley [Thu, 9 Aug 2001 01:37:39 +0000 (01:37 +0000)]
Handle entity headers after chunk body, closes bug #6846.

2001-08-08  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-transfer.c (soup_transfer_read_chunk):
Handle entity headers after chunk body, closes bug #6846.

* src/soup-core/soup-queue.c (soup_queue_read_done_cb): Fixup comments.

22 years agoOops.
Alex Graveley [Tue, 7 Aug 2001 00:28:28 +0000 (00:28 +0000)]
Oops.

22 years agoDefine VERSION to "Win/0.4.2" for Windows clients.
Alex Graveley [Tue, 7 Aug 2001 00:27:08 +0000 (00:27 +0000)]
Define VERSION to "Win/0.4.2" for Windows clients.

2001-08-06  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-private.h: Define VERSION to "Win/0.4.2" for
Windows clients.

22 years agoRemove warning used for testing. (soup_transfer_write_cb): Ditto.
Alex Graveley [Mon, 6 Aug 2001 23:36:12 +0000 (23:36 +0000)]
Remove warning used for testing. (soup_transfer_write_cb): Ditto.

2001-08-06  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-transfer.c (soup_transfer_read_cb): Remove
warning used for testing.
(soup_transfer_write_cb): Ditto.

22 years agoRead speedup to read all available data before processing and returning to
Alex Graveley [Mon, 6 Aug 2001 23:24:30 +0000 (23:24 +0000)]
Read speedup to read all available data before processing and returning to

2001-08-06  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-transfer.c (soup_transfer_read_cb): Read
speedup to read all available data before processing and returning
to the mainloop.

* src/soup-core/soup-message.h: Add defines for standard DAV methods.

22 years agoRemove special case for GET and HEAD when adding content-length header.
Alex Graveley [Tue, 31 Jul 2001 20:38:24 +0000 (20:38 +0000)]
Remove special case for GET and HEAD when adding content-length header.

2001-07-31  Alex Graveley  <alex@ximian.com>

* src/soup-core/soup-queue.c (soup_get_request_header): Remove
special case for GET and HEAD when adding content-length header.

22 years agoBump version to 0.4.2.
Alex Graveley [Tue, 31 Jul 2001 02:47:34 +0000 (02:47 +0000)]
Bump version to 0.4.2.

2001-07-30  Alex Graveley  <alex@ximian.com>

* configure.in: Bump version to 0.4.2.