Commit graph

59 commits

Author SHA1 Message Date
Yazan S. Dabain
a81f6200cf [Trivial] Fix documentation typos 2014-02-28 21:08:19 +02:00
Andrej Mitrovic
e25fa58aee Merge pull request #1923 from CyberShadow/std-net-curl-curloption
std.net.curl: Publicly import CurlOption
2014-02-16 14:59:35 +01:00
k-hara
b391b2ec9f Convert to new alias syntax 2014-02-11 15:27:05 +09:00
k-hara
701768ccfc fix Issue 12098 - libcurl bad argument on handle null 2014-02-11 12:31:49 +09:00
Vladimir Panteleev
a414010649 std.net.curl: Publicly import CurlOption 2014-02-10 17:25:50 +00:00
Daniel Murphy
a656f26e9e Remove use of automatic adjacent string literal concatenation from phobos 2014-01-20 03:42:21 +11:00
Walter Bright
9cb7cabc59 Merge pull request #1847 from MartinNowak/fix11879
fix Issue 11879 - missing default User-Agent in std.net.curl
2014-01-13 02:28:26 -08:00
Martin Nowak
b84b43ff5d fix Issue 11879 - missing default User-Agent in std.net.curl
- use "Phobos-std.net.curl/2.065 (libcurl/7.32.0)" as
  default "User-Agent"

- add method to set a different user agent
2014-01-12 21:31:58 +01:00
monarchdodra
fd8540072d Remove trailing white 2014-01-08 08:30:28 +01:00
Dmitry Olshansky
3b6cc0cb73 fix issue 11350
Do not throw on bad UTF inside of a C callback
2014-01-07 19:23:10 +04:00
Brad Anderson
4b226d9649 Typo "Protcools" 2014-01-02 21:50:44 -07:00
Brad Anderson
8f6394e2b6 Typo "enconding" 2014-01-02 20:41:05 -07:00
Martin Nowak
d0e51e109f fix Issue 10710 - phobos depends on versioned libcurl
- create a libcurl_stub.so for linking

- set it's soname to libcurl.so.4 so that phobos
  gets a DT_NEEDED libcurl.so.4 entry

- the runtime linker will load libcurl.so and resolve
  all undefined references

- disable pragma(lib, "curl") because it doesn't work
  for archives anyways and additionally links against
  the real libcurl (dmd appends -L-lcurl when building phobos).
2013-12-20 15:38:11 +01:00
Martin Nowak
39652cbd70 Merge pull request #1757 from jpf91/fixCurl
[urgent] Fix possible stack corruption in std.net.curl
2013-12-15 13:51:36 -08:00
gittywithexcitement
672b98677a update onReceive documentation
Return value description was incomplete.
2013-12-12 00:46:59 -08:00
Johannes Pfau
6392e8af36 Fix possible stack corruption in std.net.curl
The HTTP and SMTP structs are used as value types. The delegate created
in onReceiveHeader stores a pointer to this HTTP as it needs to access
this.p so we potentially leak a reference to a stack variable here.

As the Impl struct is always allocated on the heap via RefCounted
storing a pointer to Impl is not an issue. So we move the delegate
generation out of HTTP and into impl to make sure it only stores a
pointer to Impl which will stay valid even if the original HTTP object
is moved.

Also reset some delegates in _basicHTTP and _basicFTP to avoid leaving
references to stack variables around.
2013-12-07 20:30:00 +01:00
Carlos Une
cab6c58379 Fix Issue 9737 - std.net.curl and SSL - documentation missing 2013-11-11 22:28:08 -02:00
SeeSchloss
be87817e03 Documentation precisions regarding HTTP/FTP charset encoding 2013-10-19 16:19:48 +02:00
Lionello Lunesu
b4074054ba Fix issue 10893: added missing or renamed DDoc parameters (found by fix to 10236) 2013-08-31 15:36:29 +08:00
Andrej Mitrovic
4da1639c98 Merge pull request #1337 from 9rnsr/fix_attrs
Potentially @safe & pure formatting
2013-06-27 18:53:22 -07:00
k-hara
03a32d6fa4 Fix issue 313 & 314 2013-06-25 08:38:30 +09:00
k-hara
92bef24f2f fix Issue 10254 - Purity correctness is broken with constructor 2013-06-20 10:54:30 +09:00
Sean Kelly
0d5cf70137 Changed default SSL peer and host verify to TRUE. Added verifyPeer and verifyHost @properties. 2013-01-22 14:30:49 -08:00
Sean Kelly
f2eb096913 updated HTTP client to work with hosts that have an unofficial SSL cert. This matches the behavior in the SMTP client. 2013-01-17 12:24:52 -08:00
Denis Shelomovskij
8ba35528ee Remvoe tab introduced in pull #1043
Just remove the tab.
2013-01-09 15:27:20 +04:00
Carlos Une
0263398c13 indent 2012-12-29 18:22:30 -02:00
Carlos Une
3ef5d2ad66 Set CA certificates of HTTP 2012-12-29 17:41:35 -02:00
Alex Rønne Petersen
1c22141596 Merge pull request #967 from 9rnsr/enforceProperty
For the more property enforcement
2012-11-22 22:29:20 -08:00
k-hara
01df2f60be Remove redundant parenthesis for getters, and use assignment syntax for setters 2012-11-23 15:07:17 +09:00
k-hara
2897ca8807 fix Issue 9062 - AddrExp should distinguish the existence of property resolution 2012-11-23 14:25:24 +09:00
Vladimir Panteleev
dc5b328d52 std.net.curl: Add unittest for seeking in basic HTTP requests 2012-10-15 03:08:12 +03:00
Vladimir Panteleev
6625029c1c std.net.curl: Implement seeking in basic HTTP requests
This enables reposting the data after a redirect, for example.
2012-10-11 02:03:10 +03:00
Torarin
25e4acd1b5 More tests for std.net.curl.byLine and std.net.curl.byChunk 2012-10-06 14:34:22 +02:00
torarin
2b234a264f Insert missing "HTTP." in front of Method.undefined in std.net.curl._getForRange. 2012-10-06 14:34:16 +02:00
Walter Bright
bf119860f4 fix Win64 varargs bug 2012-09-26 19:26:32 -07:00
Vladimir Panteleev
0a9fbcffb0 std.net.curl: Use std.file.tempDir() in unittests 2012-09-26 08:58:27 +03:00
Andrei Alexandrescu
416ac1f4e9 Merge pull request #801 from CyberShadow/std-net-curl-put-example
std.net.curl: Fix broken HTTP PUT example
2012-09-25 22:27:42 -07:00
Andrei Alexandrescu
87eb83d3b8 Merge pull request #800 from CyberShadow/std-net-curl-binary-post
std.net.curl: Do not assume POST data is null-terminated string
2012-09-25 22:27:11 -07:00
Vladimir Panteleev
57ec88f460 std.net.curl: Do not assume POST data is null-terminated string
This fixes uploading data not containing null characters, or
non-null-terminated data.
2012-09-18 03:58:06 +03:00
Vladimir Panteleev
39f7ea6ccc std.net.curl: Fix broken HTTP PUT example 2012-09-18 03:51:59 +03:00
Vladimir Panteleev
16f0b2ad56 std.net.curl: Fix unittests on Windows 2012-09-18 03:04:55 +03:00
Johannes Pfau
184cc8247d Fix dataTimeout in std.net.curl
* std.net.curl: Added operationTimeout.
* std.net.curl: dataTimeout fixed. (Used to set operation
  timeout instead of inactivity timeout)
2012-09-17 15:11:17 +02:00
Andrei Alexandrescu
be4bdc5dfa Fix documentation build 2012-04-13 22:05:29 -05:00
Jonas Drewsen
be9cbd854f Automatically add protocol if not present to improve protocol detection.
Set upload curl option on FTP file uploads
2012-04-07 22:05:22 +02:00
k-hara
80f0da80f8 More @property 2012-03-20 01:03:05 +09:00
Denis Shelomovskij
296de58334 cast(string) is neither necessary nor safe
*`curl_easy_strerror` isn't documented as returning immutable string
2012-02-20 17:05:12 +04:00
Jimmy Cao
8d02b47947 core.stdc.*string*.strlen 2012-02-18 12:49:52 -06:00
Jimmy Cao
1c50ab9659 avoid 1 allocation (per suggestion from Andrei) 2012-02-18 12:43:25 -06:00
Jimmy Cao
b801b26d41 Make exceptions more informative 2012-02-14 23:49:32 -06:00
dawg
a55c4bfaaa no, not the private _TypeTuple from core.time 2012-02-01 02:55:44 +01:00