Motion - Feature Request 2007x 10x 25x 065125

Feature Request: Http POST Support in netcam.c (Solwise PLA-14WCAM support)

Description

I have a web camera which is connected via Homeplug Ethernet over mains, which reduces the amount of wiring which has to be run to connect a camera. It comes with its own web interface built into its firmware, and has optional Windows only software to do motion capture.

A packet sniff of the data revealed that the images are returned by a

POST /Webcam.jpg HTTP1.0

which returns a stream of JPEGs. I modified netcam.c to have

static const char *connect_req = "POST %s HTTP/1.0\r\n"

i.e. use POST rather than GET in the connect request, and with this single change (plus a configuration setting of netcam_url http://192.168.1.30:80/Webcam.jpg in my motion.conf) was able to get motion working with this camera.

See http://www.solwise.co.uk/net-powerline-pla-14wcam.htm for link to the camera information.

If motion provided a way to make the HTTP method a variable (with a default of GET), either as another configuration item, e.g. 'netcam_method' POST, or some convoluted mangling of the netcam_url e.g. netcam_url http-POST://192.168.1.30:80/Webcam.jpg then adding support for this camera in the main would be a very simple change.

-- JohnLines - 25 Oct 2007

Follow up

Comments

FeatureRequestForm edit

TopicTitle Http POST Support in netcam.c (Solwise PLA-14WCAM support)
FeatureRequestStatus New
SubmittedBy JohnLines
Topic revision: r1 - 25 Oct 2007, JohnLines
Copyright © 1999-2017 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Please do not email Kenneth for support questions (read why). Use the Support Requests page or join the Mailing List.
This website only use harmless session cookies. See Cookie Policy for details. By using this website you accept the use of these cookies.