The intent was to have a bare-bones self-contained http client with integrated json parser in order to be used on hosts not connected to the internet where only a system Perl 5.16.3 is available and where the installation of an additional package is tedious as I have no root access. Also the number of hosts is high, and the setup is not always the same. So my goal is to keep on a single tools similar to swaks for SMTP.

The result is published on https://github.com/sebkirche/pcurl/

I must confess that I later added a pure Perl support for xml by simply embedding XML::TreePP in the script, but I was challenged to understand and fix that power-regex parser. Also the development is still in-progress and I am adding the possibility to do recursive site retrievals in a way similar to wget

The best programs are the ones written when the programmer is supposed to be working on something else. - Melinda Varian

In reply to Re^4: strange behavior of JSON parsing guru regex by seki
in thread strange behavior of JSON parsing guru regex by seki

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.