Thanks for your reply. I want upload file to my server via http, not by ftp protocol. And one more question about checking result of upload file. I follow this method but this not work. viewtopic.php?t=114626How would that work exactly?
Thanks for your reply. Yes I want upload file via HTTP POST request.how does the server support this? are you talking about an upload FORM element, or some HTTP POST request or what? You can't just upload files to any server. There has to be some specific method the server is expecting, and you must know which one.
[admin@Bee-GW] > /tool fetch url="http://admin:12345@192.168.11.51:80/Video/inputs/channels/1/overlays/text" http-method=post http-data="new.xml"
status: failed
failure: closing connection: <400 Bad Request> 192.168.11.51:80 (4)
<?xml version="1.0" encoding="UTF-8"?>
<TextOverlayList version="1.0" xmlns="http://www.hikvision.com/ver10/XMLSchema">
<TextOverlay>
<id>1</id>
<enabled>true</enabled>
<posX>16</posX>
<posY>32</posY>
<message>Test !</message>
</TextOverlay>
</TextOverlayList>
root@Bee-WWW:/home/script/ipcamera/temp# curl -T new.xml http://admin:12345@192.168.11.51/Video/inputs/channels/1/overlays/text
<?xml version="1.0" encoding="UTF-8"?>
<ResponseStatus version="1.0" xmlns="http://www.hikvision.com/ver10/XMLSchema">
<requestURL>/Video/inputs/channels/1/overlays/text</requestURL>
<statusCode>1</statusCode>
<statusString>OK</statusString>
</ResponseStatus>
Please tell us how you did it.Did you guys work this out? FYI, I have worked out how to control the Hikvision by the XML API from Mikrotik script - let me know if you are interested.
> /tool fetch keep-result=yes url="http://admin:password@192.168.0.155:80/ISAPI/Smart/FieldDetection" mode=http dst-path="DetectionON.xml"
funnyAsk Hikvision to be compatible with MikroTik products.