curl-users
Reading a router
Date: Thu, 09 Feb 2006 13:17:27 -0500
Iım trying to use CURL to access a Motorola VT-1000 which is in front of my
network, acting as a light NAT router (and providing Vonage phone service).
Iıd like to query the router for the current WAN address for dynamic IP
updating. The data is there as presented when accessed by any web-browser
at.
Iım thinking I could develop a simple shell script for the Linux server to
run as a cron-job to check and compare the current WAN IP to a local copy
and when it has changed issue a WGET to the dynamic hosting site to update
my new WAN IP.
When I do a curl v http://192.168.101 I get this back:
* About to connect() to 192.168.102.1 port 80
* Trying 192.168.102.1... * connected
* Connected to 192.168.102.1 (192.168.102.1) port 80
> GET / HTTP/1.1
User-Agent: curl/7.13.1 (i386-redhat-linux-gnu) libcurl/7.13.1
OpenSSL/0.9.7f zlib/1.2.2.2 libidn/0.5.15
Host: 192.168.102.1
Pragma: no-cache
Accept: */*
< HTTP/1.1 200 OK
< Server: Rapid Logic/1.1
< MIME-version: 1.0
< Date: Sat Jan 3 09:45:37 1970 GMT
< Content-Type: text/html
< Transfer-Encoding: chunked
* Received problem 2 in the chunky parser
* Closing connection #0
curl: (56) Received problem 2 in the chunky parser
Iıve searched all around and can find no options on how either over-ride the
transfer-encoding or tell CURL to to use it.
Can this even be done?
=Alan R.
Received on 2006-02-09