Commit graph

126 commits

Author SHA1 Message Date
Andrej Mitrovic
e34c3ca875 Fix Issue 8767 - Add note on where to download the curl static library when using x86 Windows. 2014-04-24 20:52:36 +02:00
Andrej Mitrovic
e9329c10d4 Strip spaces. 2014-04-24 20:52:01 +02:00
Trent Clarke
039a237cba fixes Issue 9054 - std.net.curl byLineAsync and byChunkAsync broken. 2014-04-19 00:29:37 +10:00
Martin Nowak
52a180d507 callback uses size_t not double
- Not sure why the curl internal double arguments
  are converted to size_t in the first place though.
2014-03-21 17:05:41 +01:00
Yazan S. Dabain
a81f6200cf [Trivial] Fix documentation typos 2014-02-28 21:08:19 +02:00
Daniel Murphy
4d0892baba Remove uses of the comma operator 2014-02-18 00:48:40 +11: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
Alex Rønne Petersen
931442d539 Merge pull request #1369 from AndrejMitrovic/IsemailFix
Deglobalize default threshold value, and fix initialization of threshold variable
2013-06-30 08:20:21 -07: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
Andrej Mitrovic
8e4ef6aa8d Deglobalize default threshold value, and fix initialization of threshold variable. 2013-06-24 22:25:42 +02:00
k-hara
92bef24f2f fix Issue 10254 - Purity correctness is broken with constructor 2013-06-20 10:54:30 +09:00
Jacob Carlborg
c08f47e52c Use escape sequence for DELETE character.
This is just to make it a bit clearer what's going on.
2013-03-23 17:55:05 +01:00
Jacob Carlborg
f6e27e6f79 Enable a bunch of tests for std.net.isemail.
These tests were previously commented out because of a bug
the regular expression module. Now when we have a new regular
expression module we can enable these tests.

This also fixed a bug in the internally used "substr" function.
2013-03-22 15:44:58 +01: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
Alex Rønne Petersen
5e9b90f9e2 Merge pull request #860 from CyberShadow/std-net-curl-onseek
std.net.curl: Implement seeking in basic HTTP requests
2012-10-19 09:13:17 -07:00
alexrp
b202180295 Remove all uses of sizediff_t in favor of ptrdiff_t. 2012-10-15 04:24:09 +02: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
Andrei Alexandrescu
cbc0b9a9ca Merge pull request #761 from jmdavis/string
Removed deprecated functions in std.string
2012-10-06 21:50:28 -07: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
jmdavis
27469366a7 Fix modules which incorrectly use std.string's public imports.
Now, they should be correctly importing for the functions publicly
imported by std.string so that if those public imports are ever removed,
they won't break.
2012-09-30 03:29:37 -07: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