Does somebody faced VAPIX 3 api? I need to enable/disable action rules for camera. Leafing through some api from the internet i have not found any specific information for action rules, so i sniffed requests from web-panel. On required action it sends 4 soap requests:
curl 'http://**.***.***.***:****/vapix/services?timestamp=1395407004744'
-X POST -H 'Host: **.***.***.***:****'
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0'
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
-H 'Accept-Language: en-US,en;q=0.5'
-H 'Accept-Encoding: gzip, deflate'
-H 'SOAPAction: http://www.axis.com/vapix/ws/action1/RemoveActionRule'
-H 'Content-Type: text/xml; charset=utf-8'
-H 'Referer: http://**.***.***.***:****/operator/action_rule_setup.shtml?doAction=modify&ruleId=18×tamp=1395406986842'
curl 'http://**.***.***.***:****/vapix/services?timestamp=1395407005154'
-X POST -H 'Host: **.***.***.***:****'
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0'
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
-H 'Accept-Language: en-US,en;q=0.5'
-H 'Accept-Encoding: gzip, deflate'
-H 'SOAPAction: http://www.axis.com/vapix/ws/action1/RemoveActionConfiguration'
-H 'Content-Type: text/xml; charset=utf-8'
-H 'Referer: http://**.***.***.***:****/operator/action_rule_setup.shtml?doAction=modify&ruleId=18×tamp=1395406986842'
curl 'http://**.***.***.***:****/vapix/services?timestamp=1395407005333'
-X POST
-H 'Host: **.***.***.***:****'
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0'
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
-H 'Accept-Language: en-US,en;q=0.5'
-H 'Accept-Encoding: gzip, deflate'
-H 'SOAPAction: http://www.axis.com/vapix/ws/action1/AddActionConfiguration'
-H 'Content-Type: text/xml; charset=utf-8'
-H 'Referer: http://**.***.***.***:****/operator/action_rule_setup.shtml?doAction=modify&ruleId=18×tamp=1395406986842'
curl 'http://**.***.***.***:****/vapix/services?timestamp=1395407005575'
-X POST
-H 'Host: **.***.***.***:****'
-H 'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0'
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8'
-H 'Accept-Language: en-US,en;q=0.5'
-H 'Accept-Encoding: gzip, deflate'
-H 'SOAPAction: http://www.axis.com/vapix/ws/action1/AddActionRule'
-H 'Content-Type: text/xml; charset=utf-8'
-H 'Referer: http://**.***.***.***:****/operator/action_rule_setup.shtml?doAction=modify&ruleId=18×tamp=1395406986842'
Do i really need to delete/create actions for disable/enable it ?
Yes, you need to create/recreate action rules in order the enable or disable them. If you look at the SOAP actions generated form the web interface, it actually does the same.
One work-around would be to combine the conditions in your rule with a virtual (or even non-virtual) input. The input is stateful and can be toggled with the ChangeVirtualInputState method in the EventService. You need to check if your camera supports inputs, though.
Related
I have an issue Im hoping to get help with. I am trying to interact directly with a website by making requests directly to an endpoint instead of using the site itself. I started by capturing three basic requests, Login, Logout, and submitting some data. I did the standard process of going into the Chrome inspect panel and copying the logged request as a CURL statement. It looks like this for the following commands....
Login
curl 'https://thewebsite.org/login' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'Accept-Language: en-US;q=0.7' \
-H 'Cache-Control: max-age=0' \
-H 'Connection: keep-alive' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-H 'Cookie: symfony=0d5784ap6ogee0r1nba4446krftdqug9kq6jotmqecp9lmip7b10' \
-H 'Origin: https://thewebsite.org' \
-H 'Referer: https://thewebsite.org/index.php/en' \
-H 'Sec-Fetch-Dest: document' \
-H 'Sec-Fetch-Mode: navigate' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'Sec-Fetch-User: ?1' \
-H 'Sec-GPC: 1' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36' \
--data-raw 'login=the_user&password=the_password' \
--compressed
This seems to work both in Insomnia and via command line using CURL.
However, the Logout and the submission of the edited data do not work at all. I will get a success response back on both but the edited data is not actually saved the next time I view it and in regards to the logout functionality it is not ultimately successful either because I have to let the login timeout to login via a browser again (this happens because the user was not properly logged out on this site).
Logout
curl 'https://thewebsite.org/logout' \
-H 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9' \
-H 'Accept-Language: en-US;q=0.7' \
-H 'Connection: keep-alive' \
-H 'Cookie: symfony=6hpsjifjnem8v0r7pfb5rr22fkdr9th115t01c05p8cfss9mrle1' \
-H 'Referer: https://thewebsite.org/thelink' \
-H 'Sec-Fetch-Dest: document' \
-H 'Sec-Fetch-Mode: navigate' \
-H 'Sec-Fetch-Site: same-origin' \
-H 'Sec-Fetch-User: ?1' \
-H 'Sec-GPC: 1' \
-H 'Upgrade-Insecure-Requests: 1' \
-H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.5060.134 Safari/537.36' \
--compressed
I'd also add that in Chrome dev tools that the response code appears as 302. I tried disabling redirects and get a 302 back when I do that as opposed to a 200 but it makes no difference in terms of it behaving as it does in the browser.
Im really not sure what else to try, if anyone has any comments or suggestions I would be grateful. This is my first question, so if I left out some needed data I will gladly post it. Thank you!
I'm trying to mirror a site using :
wget --header 'accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8' --header 'upgrade-insecure-requests: 1' --header 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36' --header 'dnt: 1' --header 'accept-encoding: gzip, deflate, br' --header 'accept-language: en-US,en;q=0.9' --header 'cookie: _ga=GA1.2.3865356.1523153047; ........' -N -m -p -w 3 --convert-links 'mysite.com/
I've added a couple of headers and noticed that the recursive downloading was not happening. Just the initial index.html page is downloaded. When I looked at the page I see the screenshot. What is being downloaded here. How can I download regular html files instead?
If you add the option --server-response what do you see in the Content-Type header of the response? Is it anything like text/html?
P.S.: since you used the -m (i.e. --mirror) option you do not need to specify the flag -N as well.
I'm doing a curl to send a POST in my group, and it doesn't works, it posts on the All Company Network even if I sent the group_id.
curl -H "Accept: application/json" -H "Content-type: application/json" -H "Authorization: Bearer OAUTHTOKENHERE" -X POST -d '{"activity":{"actor":{"email":"MYEMAIL"},"action":"create"}}' https://www.yammer.com/api/v1/messages.json?body=TestingfromYammersAPI&group_id=GROUPID
I'm writing the right group_id, and still not reading that argument.
Does anyone has this problem too?
Yammer's API docs:
https://developer.yammer.com/docs/messages-json-post
The problem was that I wasn't quoting the URL -___-
Working code:
curl -H 'accept: application/json' -H 'authorization: Bearer OAUTHTOKENHERE' -H 'content-type: application/json' -X POST -d ' ' 'https://www.yammer.com/api/v1/messages.json?body=MESSAGE_HERE&group_id=GROUP_ID'
I'm trying to build a simple bash script to automatically upload .gpx file to endomondo from my home made "smartskateboard" using a raspberry.
The steps to do this using a browser are :
-Login on the website (and browse to the right place)
-Select a local file and post it. (the file is uploaded and parsed by the server)
-Validate the track and chose the sport.
Here are some pictures :
http://i.stack.imgur.com/aH1Yr.png
http://i.stack.imgur.com/jQVXM.png
I tried to use chrome dev tools and this is what I'v done yet.
I have managed to get the curl command to post a message :
curl 'https://www.endomondo.com/rest/v1/users/12598/feeds/' -H 'Pragma: no-cache' -H 'Origin: https://www.endomondo.com' -H 'Accept-Encoding: gzip, deflate' -H 'X-CSRF-TOKEN: rd7g3v4jn7qb3tn850tadctgku' -H 'Accept-Language: en-US,en;q=0.8,fr-FR;q=0.6,fr;q=0.4' -H 'User-Agent: Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53' -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' -H 'Cache-Control: no-cache' -H 'Referer: https://www.endomondo.com/home' -H 'Cookie: CSRF_TOKEN=rd7g3v4jn7qb3tn850tadctgku; EndomondoApplication_AUTO=; EndomondoApplication_AUTH="440BDF49EEB9D76EURIPamw77KUpPuQyzORKeykOJHruw8sKNRBWWA0HJ7BP6kfWNLgIy0ZrtapJam0G7F4xt7lZB7M%2FGp7aHoGLRcuXFnNE2UqIonAMHmNL6Nc%3D"; EndomondoApplication_USER="test%40test.test"; JSESSIONID=D44DF5952D9FB9ECB5770809674604BC; AWSELB=13FDC17D1C2B68745BCB41EBB6BDDC3DB8274D93D6BFB2FED334D90D6839B6C1C83CB494F784DFC9E02CB65D818CE77DB9BD0EC99020A8445EE98B4DBDFCA6E4A764395BA73DF1CBDA0BA244DD4CE2E654387EB981; __utma=162144232.146159703.1442243029.1451137760.1451149929.4; __utmb=162144232.9.10.1451149929; __utmc=162144232; __utmz=162144232.1442243029.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); USER_TOKEN=23EEE323B7AEA408yrCg5GoWVwn5pzcXtsVfJop8VgkqdNw9y6XCU1hTgcylJixgbmFwGy8k7IUp25N2CeS0aSn0B9R0B5KIcbwPK5HhL5znQwSCTQR%2FcV4xHZ8%3D; _dc_gtm_UA-273418-98=1; _gat=1; acceptCookies=1; _ga=GA1.2.146159703.1442243029' -H 'Connection: keep-alive' --data-binary '{"message":"I love sports and I dont care who know.","picture_keys":[]}' --compressed
Or, easier to see :
curl
'https://www.endomondo.com/rest/v1/users/12598/feeds/' -H
'Pragma: no-cache' -H
'Origin: https://www.endomondo.com' -H
'Accept-Encoding: gzip, deflate' -H
'X-CSRF-TOKEN: rd7g3v4jn7qb3tn850tadctgku' -H
'Accept-Language: en-US,en;q=0.8,fr-FR;q=0.6,fr;q=0.4' -H
'User-Agent: Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53' -H
'Content-Type: application/json;charset=UTF-8' -H
'Accept: application/json, text/plain, */*' -H
'Cache-Control: no-cache' -H
'Referer: https://www.endomondo.com/home' -H
'Cookie: CSRF_TOKEN=rd7g3v4jn7qb3tn850tadctgku; EndomondoApplication_AUTO=; EndomondoApplication_AUTH="440BDF49EEB9D76EURIPamw77KUpPuQyzORKeykOJHruw8sKNRBWWA0HJ7BP6kfWNLgIy0ZrtapJam0G7F4xt7lZB7M%2FGp7aHoGLRcuXFnNE2UqIonAMHmNL6Nc%3D"; EndomondoApplication_USER="test%40test.test"; JSESSIONID=D44DF5952D9FB9ECB5770809674604BC; AWSELB=13FDC17D1C2B68745BCB41EBB6BDDC3DB8274D93D6BFB2FED334D90D6839B6C1C83CB494F784DFC9E02CB65D818CE77DB9BD0EC99020A8445EE98B4DBDFCA6E4A764395BA73DF1CBDA0BA244DD4CE2E654387EB981; __utma=162144232.146159703.1442243029.1451137760.1451149929.4; __utmb=162144232.9.10.1451149929; __utmc=162144232; __utmz=162144232.1442243029.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); USER_TOKEN=23EEE323B7AEA408yrCg5GoWVwn5pzcXtsVfJop8VgkqdNw9y6XCU1hTgcylJixgbmFwGy8k7IUp25N2CeS0aSn0B9R0B5KIcbwPK5HhL5znQwSCTQR%2FcV4xHZ8%3D; _dc_gtm_UA-273418-98=1; _gat=1; acceptCookies=1; _ga=GA1.2.146159703.1442243029' -H
'Connection: keep-alive' --data-binary
'{"message":"I love sports and I dont care who know.","picture_keys":[]}' --compressed
But when I try to use the same "copy to cURL" technique to upload a gpx this is what I get :
curl 'https://www.endomondo.com/?x=0vBK0C*OVDu7aPYFZkE-CVgVIAFbs93VmWFtfCp7PaWi1ZSVu574S9sV8PL-3zjJUvnwjalxBcDaHd*-JuZnu52USOr5snwbRLbnzcTIw1AXlA-F028Z-Xs-0k5SWzAWYCg3I-wtaU3iwIxLLlrHgzW4j28xUw0QNh0zDH4z*Js&random=0.6610315972939134' -H 'Pragma: no-cache' -H 'Origin: https://www.endomondo.com' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,fr-FR;q=0.6,fr;q=0.4' -H 'User-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: text/xml' -H 'Cache-Control: no-cache' -H 'Referer: https://www.endomondo.com/?x=-Ut4ofqQrclJ*V-2TTUglw' -H 'Cookie: CSRF_TOKEN=rd7g3v4jn7qb3tn850tadctgku; __utmt=1; _dc_gtm_UA-273418-98=1; _gat=1; EndomondoApplication_AUTO=; EndomondoApplication_AUTH="440BDF49EEB9D76EURIPamw77KUpPuQyzORKeykOJHruw8sKNRBWWA0HJ7BP6kfWNLgIy0ZrtapJam0G7F4xt7lZB7M%2FGp7aHoGLRcuXFnNE2UqIonAMHmNL6Nc%3D"; EndomondoApplication_USER="test%40test.test"; JSESSIONID=D44DF5952D9FB9ECB5770809674604BC; USER_TOKEN=4E6208A8CF58143F9JU58ueFMl0S5AJJhA8kgpfKDUL50Siopic6W7lYJlfi8BVhAr0s8LCDSyHNXNGXGMFfFpaxkpf0p8Voa9OIjSFxhWLuAHzq35QK7WQoX94%3D; AWSELB=13FDC17D1C2B68745BCB41EBB6BDDC3DB8274D93D6BFB2FED334D90D6839B6C1C83CB494F784DFC9E02CB65D818CE77DB9BD0EC99020A8445EE98B4DBDFCA6E4A764395BA73DF1CBDA0BA244DD4CE2E654387EB981; acceptCookies=1; _ga=GA1.2.146159703.1442243029; __utma=162144232.146159703.1442243029.1451137760.1451149929.4; __utmb=162144232.7.10.1451149929; __utmc=162144232; __utmz=162144232.1442243029.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)' -H 'Connection: keep-alive' -H 'Wicket-Ajax: true' --data 'id40_hf_0=&csrftoken=rd7g3v4jn7qb3tn850tadctgku&workoutRow%3A0%3Amark=on&workoutRow%3A0%3Asport=89&reviewSumbit=1' --compressed
Or :
curl '
https://www.endomondo.com/?x=0vBK0C*OVDu7aPYFZkE-CVgVIAFbs93VmWFtfCp7PaWi1ZSVu574S9sV8PL-3zjJUvnwjalxBcDaHd*-JuZnu52USOr5snwbRLbnzcTIw1AXlA-F028Z-Xs-0k5SWzAWYCg3I-wtaU3iwIxLLlrHgzW4j28xUw0QNh0zDH4z*Js&random=0.6610315972939134' -H '
Pragma: no-cache' -H '
Origin: https://www.endomondo.com' -H '
Accept-Encoding: gzip, deflate' -H '
Accept-Language: en-US,en;q=0.8,fr-FR;q=0.6,fr;q=0.4' -H '
User-Agent: Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_2_1 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8C148 Safari/6533.18.5' -H '
Content-Type: application/x-www-form-urlencoded' -H '
Accept: text/xml' -H '
Cache-Control: no-cache' -H '
Referer: https://www.endomondo.com/?x=-Ut4ofqQrclJ*V-2TTUglw' -H '
Cookie: CSRF_TOKEN=rd7g3v4jn7qb3tn850tadctgku; __utmt=1; _dc_gtm_UA-273418-98=1; _gat=1; EndomondoApplication_AUTO=; EndomondoApplication_AUTH="440BDF49EEB9D76EURIPamw77KUpPuQyzORKeykOJHruw8sKNRBWWA0HJ7BP6kfWNLgIy0ZrtapJam0G7F4xt7lZB7M%2FGp7aHoGLRcuXFnNE2UqIonAMHmNL6Nc%3D"; EndomondoApplication_USER="test%40test.test"; JSESSIONID=D44DF5952D9FB9ECB5770809674604BC; USER_TOKEN=4E6208A8CF58143F9JU58ueFMl0S5AJJhA8kgpfKDUL50Siopic6W7lYJlfi8BVhAr0s8LCDSyHNXNGXGMFfFpaxkpf0p8Voa9OIjSFxhWLuAHzq35QK7WQoX94%3D; AWSELB=13FDC17D1C2B68745BCB41EBB6BDDC3DB8274D93D6BFB2FED334D90D6839B6C1C83CB494F784DFC9E02CB65D818CE77DB9BD0EC99020A8445EE98B4DBDFCA6E4A764395BA73DF1CBDA0BA244DD4CE2E654387EB981; acceptCookies=1; _ga=GA1.2.146159703.1442243029; __utma=162144232.146159703.1442243029.1451137760.1451149929.4; __utmb=162144232.7.10.1451149929; __utmc=162144232; __utmz=162144232.1442243029.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)' -H '
Connection: keep-alive' -H '
Wicket-Ajax: true' --data '
id40_hf_0=&csrftoken=rd7g3v4jn7qb3tn850tadctgku&workoutRow%3A0%3Amark=on&workoutRow%3A0%3Asport=89&reviewSumbit=1' --compressed
I get :
<ajax-response><redirect><![CDATA[error]]></redirect></ajax-response>
So I didn't even been able to try to submit it with the second command :
curl 'https://www.endomondo.com/?x=WlHAHVtjhk33-6IZe8pKNMcha8tKpVMtc7*LCDzjZIEH14OF2*ZrTz5U6XsxRTk3xhNTap*KHozta0ZwGX4renCl4kla788HolvOCWj8Yz9gkvwj2Yngw-hgnzScvIqHiZAZFeNpfszko*MwYqk2W2GbbT2zy9AALpIO4IAb1lw&random=0.6173482222948223' -H 'Pragma: no-cache' -H 'Origin: https://www.endomondo.com' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.8,fr-FR;q=0.6,fr;q=0.4' -H 'User-Agent: Mozilla/5.0 (iPad; CPU OS 7_0 like Mac OS X) AppleWebKit/537.51.1 (KHTML, like Gecko) Version/7.0 Mobile/11A465 Safari/9537.53' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: text/xml' -H 'Cache-Control: no-cache' -H 'Referer: https://www.endomondo.com/?x=C-bb6EzoU1JGg3brORVo4w' -H 'Cookie: CSRF_TOKEN=rd7g3v4jn7qb3tn850tadctgku; EndomondoApplication_AUTO=; EndomondoApplication_AUTH="440BDF49EEB9D76EURIPamw77KUpPuQyzORKeykOJHruw8sKNRBWWA0HJ7BP6kfWNLgIy0ZrtapJam0G7F4xt7lZB7M%2FGp7aHoGLRcuXFnNE2UqIonAMHmNL6Nc%3D"; EndomondoApplication_USER="test%40test.test"; JSESSIONID=D44DF5952D9FB9ECB5770809674604BC; AWSELB=13FDC17D1C2B68745BCB41EBB6BDDC3DB8274D93D6BFB2FED334D90D6839B6C1C83CB494F784DFC9E02CB65D818CE77DB9BD0EC99020A8445EE98B4DBDFCA6E4A764395BA73DF1CBDA0BA244DD4CE2E654387EB981; acceptCookies=1; _ga=GA1.2.146159703.1442243029; __utma=162144232.146159703.1442243029.1451137760.1451149929.4; __utmb=162144232.9.10.1451149929; __utmc=162144232; __utmz=162144232.1442243029.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); USER_TOKEN=23EEE323B7AEA408yrCg5GoWVwn5pzcXtsVfJop8VgkqdNw9y6XCU1hTgcylJixgbmFwGy8k7IUp25N2CeS0aSn0B9R0B5KIcbwPK5HhL5znQwSCTQR%2FcV4xHZ8%3D' -H 'Connection: keep-alive' -H 'Wicket-Ajax: true' --data 'id56_hf_0=&csrftoken=rd7g3v4jn7qb3tn850tadctgku&workoutRow%3A0%3Amark=on&workoutRow%3A0%3Asport=8&reviewSumbit=1' --compressed
I guess there should be a cleaner way to do this, but I don't know where to start.
Thanks for reading, feel free to ask more details.
Have a great day.
François
I tried to use CGI.pm (3.15), but it can't handle PUT requests.
I'm building a REST API, so I need methods PUT, GET, POST and DELETE.
Any ideas?
Code:
#!/usr/bin/perl
use strict;
use CGI;
use CGI::Carp qw(fatalsToBrowser);
main: {
print "Content-Type: text/html; charset=utf-8\n\n";
my $query = CGI->new;
my $value1 = $query->param('param1');
my $value2 = $query->param('param2');
my $data = $query->param('PUTDATA');
print "value1[$value1] value2[$value2] data[$data]\n";
};
Curl:
curl 'http://localhost/cgi-bin/testing.cgi' -X PUT -H 'Origin: chrome-extension://hgmloofddffdnphfgcellkdfbfbjeloo' -H 'Accept-Encoding: gzip,deflate,sdch' -H 'Host: 192.168.8.197' -H 'Accept-Language: es-419,es;q=0.8' -H 'User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.71 Safari/537.36' -H 'Content-Type: application/x-www-form-urlencoded' -H 'Accept: */*' -H 'Connection: keep-alive' --data 'param1=hola¶m2=hola' --compressed
value1, value2 and data always empty.
I found it!
The solution was doing an update to the perl module CGI to 3.63 and now works fine.