Commit Graph

28 Commits

Author SHA1 Message Date
Wez Furlong
fc1ef270ce Implement curl based wrappers.
Currently read-only, and http is the only thing tested.
Because of this, using them can be controlled by configure:

--with-curlwrappers     Use CURL for url streams

Not for production use...

This enables http, https, ftp and ldap protocols as streams.
2002-08-12 15:56:13 +00:00
Sebastian Bergmann
38933514e1 Update headers. 2001-12-11 15:32:16 +00:00
Sterling Hughes
958675c067 fix compile 2001-09-22 16:56:21 +00:00
Sterling Hughes
0216627522 @ Fixed a crash when using the CURLOPT_WRITEHEADER option. (Sterling)
# Folks please test, I've tested a limited amount of test cases, however,
# this change is far reaching, so I couldn't test all the necessary things
2001-06-25 15:14:20 +00:00
Daniel Beulshausen
741fbe5fc6 winsock is already initialized in an higher version by php 2001-05-17 17:13:47 +00:00
Sterling Hughes
ffc997f149 Add a compile check for the cURL version and fix the compile in general. 2001-05-16 23:43:30 +00:00
Sterling Hughes
00421e7c83 leftovers..... 2001-05-14 21:04:23 +00:00
Sterling Hughes
1ae44c8e49 Make it compile with the latest cURL cvs, heck it even works. 2001-05-04 04:20:38 +00:00
Sterling Hughes
ea2cf1856f # Ok, big ass change list. Most of the changes are NEW's worthy, so
# I'll enter them directly there, not here....  The non-newsworthy code
# is:

Added REGISTER_CURL_CONSTANT() a wrapper around REGISTER_LONG_CONSTANT()
Re-vamp the internal php_curl structure.
Properly free allocated slist's and HttpPost structures
many whitespace changes
speed improvements (in the post handling and slist area's)

# Furthermore, as a side note, while the code I'm committing is correct,
# no one will be able to compile it yet and test it, as it requires a
# patched version of curl (if you really want to try it out and can't
# wait a day or two, send me a private mail)
2001-04-30 14:36:19 +00:00
Sterling Hughes
425c714435 # Actually fix the bug this time (I fixed another bug last time :) 2001-04-28 21:44:44 +00:00
Andi Gutmans
eb6ba01d1c - Fix copyright notices with 2001 2001-02-26 06:11:02 +00:00
Sterling Hughes
2f0238dc4e Change e-mail address
# Can I get someone to change my cvsusers e-mail address to
# sterling@designmultimedia.com?
2001-02-15 16:20:13 +00:00
Sterling Hughes
0e6fe30139 Make daniel's changes work in ZTS mode... 2001-01-12 10:49:38 +00:00
Daniel Beulshausen
490cca07de take out emtpy struct
# vc chokes on them
2001-01-12 10:26:29 +00:00
Stanislav Malyshev
b36afe2957 Fix memory leaks in cURL.
cURL doesn't free strings we pass to him, so let PHP do it.
2000-11-22 15:46:13 +00:00
Sterling Hughes
70f262d0c5 New e-mail address. 2000-10-27 19:10:23 +00:00
Sterling Hughes
6b8faeb1f2 Fix CURLOPT_REFERER.
@ Added the curl_getinfo() function to find out information about a CURL
transfer.  This function requires cURL 4.0 or above. (Sterling)

@ Added the CURLOPT_KRB4, CURLOPT_INTERFACE, CURLOPT_QUOTE,
CURLOPT_POSTQUOTE, CURLOPT_QUOTE and CURLOPT_HTTPPROXYTUNNELL options.
(Sterling)
2000-10-20 04:57:14 +00:00
Sterling Hughes
36dc3e1c20 @ Added the ability for CURLOPT_POSTFIELDS to accept an array of HTTP post
parameters. (Sterling)
@ Added the CURLOPT_HTTPHEADER option that allows for the posting of HTTP
headers to a remote site from cURL. (Sterling)
@ Add the curl_error() and curl_errno() functions. (Sterling)

Buncha other changes...

  - Changed if () else if () in curl_setopt to switch .. case
  - Fixed a couple crashes in certain cases.
  - Finally a decent error reporting scheme.
  - A few formatting changes.
2000-09-30 03:09:54 +00:00
Sterling Hughes
6e10dc5456 Fix up the implementation.
# it was getting hacky already.
2000-08-27 22:53:33 +00:00
Sterling Hughes
cd599d17c0 Bunch o' changes..
- Add the ability to return the web page into a variable
	by setting the CURLOPT_RETURNTRANSFER constant to 1.
	- Make everything conform to the naming guidelines.
	- Delete the resource id from the file_id table when a
	resource is closed.
2000-08-20 08:28:00 +00:00
Sterling Hughes
c80f2bcba2 Purely cosmetic. 2000-08-18 13:24:00 +00:00
Sterling Hughes
8a8b5dacc6 ts issues. 2000-08-17 02:14:41 +00:00
Sterling Hughes
185f6e95d8 Leftovers... 2000-08-15 17:03:48 +00:00
Sterling Hughes
d06c4b2e3f This fixes to problems:
- Apache not having the output go to stdout in some cases.
- Output being displayed before the header is displayed.

And causes the following:

- *Slightly* slower cURL transfers.
2000-08-15 16:50:14 +00:00
Sterling Hughes
bba7086ac3 - Fix spacing.
- Add error constants.
2000-08-13 19:32:09 +00:00
Kristian Köhntopp
19687ea1ed Trivial change to add access to CURL version information for
user programs in order to have them react appropriately.
2000-07-25 22:15:26 +00:00
Sterling Hughes
cb44d1b30a 1. Move from experimental -> production
2.  Thread safety
3.  Set some initial options
4.  Redo the placement of some functions and options.
2000-07-24 20:00:00 +00:00
Sterling Hughes
6787071417 Add CURL support (http://curl.haxx.se).
# Currently pretty experimental, and labeled so, it
# only really works with the CGI version.  I wanted
# to get the sources in CVS, so I could give a
# reference point for some issues, and get more
# extensive testing...
#
# Does anyone know how long it is going to be till
# the next minor release?
2000-07-16 19:37:33 +00:00