curl-users
Re: Lynx replacement
Date: Thu, 21 May 2015 10:33:08 -0400
On Thu, May 21, 2015 at 10:23 AM, Ibrahim Salim Omari <iomari_at_gmail.com>
wrote:
> Tried that. Didn't work. The lynx command controls a camera. When I run
> the curl, nothing happens.
>
> On 21 May 2015 15:20:24 Charles Romestant <cromestant_at_gmail.com> wrote:
>
>>
>> On Thu, May 21, 2015 at 9:34 AM, Ibrahim Salim Omari <iomari_at_gmail.com>
>> wrote:
>>
>>> greetings,
>>> How can I use curl to replace the following lynx command:
>>>
>>> lynx -dump -auth=name:password "
>>> http://192.168.1.88/web/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=down&-speed=45
>>> "
>>>
>>> Thanks in advance
>>> Ibrahim
>>>
>>> -------------------------------------------------------------------
>>> List admin: http://cool.haxx.se/list/listinfo/curl-users
>>> FAQ: http://curl.haxx.se/docs/faq.html
>>> Etiquette: http://curl.haxx.se/mail/etiquette.html
>>>
>>> you should be able to do simply
>> curl -u name:password "
>> http://192.168.1.88/web/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=down&-speed=45"
>> > file_to_dump_in
>>
>>
>> --
>> MSc. Charles M. Romestant F.
>>
>>
>> Merci de penser à l'environnement avant d'imprimer cet e-mail
>> Please think about the environment before you print this e-mail
>> Por favor piense en el medio ambiente antes de imprimir este e-mail
>>
>>
>> ------------------------------
>> List admin: http://cool.haxx.se/list/listinfo/curl-users
>> FAQ: http://curl.haxx.se/docs/faq.html
>> Etiquette: http://curl.haxx.se/mail/etiquette.html
>>
>
> -------------------------------------------------------------------
> List admin: http://cool.haxx.se/list/listinfo/curl-users
> FAQ: http://curl.haxx.se/docs/faq.html
> Etiquette: http://curl.haxx.se/mail/etiquette.html
>
>
reading the lynx man , the dump option just dumps the output to stdout, so
unless you ned some extra sources in there fetched for this to work, the
curl just does a basic HTTP get to that page, authenticating.
Can you try doing curl -v -u user:pass "
http://192.168.1.88/web/cgi-bin/hi3510/ptzctrl.cgi?-step=0&-act=down&-speed=45"
and giving the output to see what is happening?
-- MSc. Charles M. Romestant F. Merci de penser à l'environnement avant d'imprimer cet e-mail Please think about the environment before you print this e-mail Por favor piense en el medio ambiente antes de imprimir este e-mail
-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2015-05-21