[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [hobbit] URLplus
- To: hobbit (at) hswn.dk
- Subject: Re: [hobbit] URLplus
- From: "Ralph Mitchell" <ralphmitchell (at) gmail.com>
- Date: Tue, 29 Apr 2008 15:04:59 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=crhLiMnOuG/MTsI9NZO+Yr56QNMGHbQzoxf0aGkGBkU=; b=GL/jyvotsotdUBnVVizWsY7ZHC9vLqJ4xeid+l3UlvfxD6jK/yPPIZ40vY2Kn1DMzXDIi6+b5xZj/SHtAvgnPdc/KIn5RMAkIvXulJ3GyXRaCZ78QHJlTKReqOvtagm/TPsrFfo3qIRRELmPmhSOiHSuhiCRhbH2bonswnXog1w=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=QHoMhogZtcshD/E+NHctKPFP9uH1NKphlEIpV1p4i5MsJ5ugpEOLXTkE29kfSiGfe3RflVeiAdGk/1+k8eZVwOO1auLhXHJFe218SwAyYcJW+PsEHh11IIvPT78UR1NTpu2n11Wt4WEiCBSiooad4t7Dr16WJBfrliZF8KIGyXk=
- References: <OF2C761574.83BE22FA-ONC125743A.006AEE27-C125743A.006AFCB1 (at) machcorp.lan>
On Tue, Apr 29, 2008 at 2:28 PM, Thomas Laurids Pedersen <tlp (at) mach.com>
wrote:
> Can this new extension do the post like the builtin http test can do ?
>
> Regards, Thomas
>
I don't think so, as it currently stands. This line:
$ret=qx(curl -m $tout -s -k -S $pstr "$url" 2>&1);
in showUrl is the bit that actually fetches the web page. To do a POST
using curl, you would need to change that to:
$ret=qx(curl -m $tout -s -k -S -d $postArgs $pstr "$url" 2>&1);
with matching additions elsewhere to fill the $postArgs variable with
whatever you want to post. If you're wanting to implement something that
performs a login, you'd probably want to track cookies as well.
I'm not much of a perl programmer, so I'm not confident about making such
changes. On the other hand, I've done quite a lot of this in Bourne
shell...
Ralph Mitchell
- References:
- URLplus
- From: Thomas Laurids Pedersen