Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Runs from Command Line but NOT from Perl

by Your Mother (Bishop)
on Oct 18, 2018 at 17:31 UTC ( #1224251=note: print w/replies, xml ) Need Help??


in reply to Re: Runs from Command Line but NOT from Perl
in thread Runs from Command Line but NOT from Perl

Tangent: Has anyone ever written a curl2lwp kind of thing in the vein of s2p and a2p? It would obviously be more verbose, especially in output, but I just realized that I'd like to have it so I can copy curl commands from the dev panel and such and use them to stub out a new LPW/Mech script.

Update: curl2perl really rolls off the tongue…

Replies are listed 'Best First'.
Re^3: Runs from Command Line but NOT from Perl
by Corion (Pope) on Nov 14, 2018 at 18:09 UTC
Re^3: Runs from Command Line but NOT from Perl
by Anonymous Monk on Oct 19, 2018 at 01:10 UTC
    You can write curl2perl

      As is often the case, I almost certainly bit off more than I can chew but…

      my $ok = GetOptions( "abstract-unix-socket" => \my $path, "anyauth" => \my $anyauth, "a|append" => \my $append, "basic" => \my $basic, "cacert" => \my $cacert, "capath" => \my $capath, "cert-status" => \my $cert_status, # ...

      …there is a 200 line stub.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1224251]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2019-10-17 08:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?