Net:::Curl is only for Linux
I've successfully built Net-Curl-0.37 on Windows in the past (for perls 5.8.8 through to 5.24.x).
I haven't checked to see whether there's a later version of Net-Curl, and I haven't bothered building it on later versions of perl.
I can see that I had to hack the Makefile.PL a bit (I could provide details if there's any interest), and I also needed the following patch to Curl.xs:
--- Curl.xs_orig 2015-06-22 19:33:33 +1000
+++ Curl.xs 2015-06-22 19:51:00 +1000
@@ -17,6 +17,15 @@
#include "perl.h"
#include "XSUB.h"
+#ifdef __MINGW32__
+#undef fread
+#undef fwrite
+#endif
+
#include <curl/curl.h>
#include <curl/easy.h>
#include <curl/multi.h>
Not so sure that it passed its test suite entirely, but it was certainly generally usable.
Cheers,
Rob
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.