I have to send something what has a dash - for example:
5696d760-161d-11e6-b631-dd7b9f7123f0
but the server rejects it because it´s send like:
5696d760%2d161d%2d11e6%2db631%2ddd7b9f7123f0
Any idea how to keep the dash instead of the replacement %2d ?
generic http + problems with special characters ?
Moderators: grovkillen, Stuntteam, TD-er
Re: generic http + problems with special characters ?
Are you sure the server rejects it because of the correctly encoded dash?
Do you have access to the web server logs? Or the logs of the web application ?
For the volkszaehler demo server it was important to use the correct host-header. As of version R101 implemented
Do you have access to the web server logs? Or the logs of the web application ?
For the volkszaehler demo server it was important to use the correct host-header. As of version R101 implemented
Re: generic http + problems with special characters ?
You are right, it´s for Volkszaehler.
About half a year ago, i modified the "general HTTP Interface", it worked so far
Now i wanted to give it a try with an actual release, didn´t get it to work
The problem is, my Volkszaehler is hostet on a public webserver ( 1und1)
I got it running again with a modified general HTTP Interface
I had to take out the URLEncode
in
I also had to hard-code the URL, because on a public web server, the URL can´t just be replaced by an IP-adress
Is it working for you out of the box ?
If some of the developers here want to further investigate the problem, i could give a test account to my server and send my modified general HTTP Interface ?
Regards
Klaus
About half a year ago, i modified the "general HTTP Interface", it worked so far
Now i wanted to give it a try with an actual release, didn´t get it to work
The problem is, my Volkszaehler is hostet on a public webserver ( 1und1)
I got it running again with a modified general HTTP Interface
I had to take out the URLEncode
in
Code: Select all
url.replace("%valname%", URLEncode(ExtraTaskSettings.TaskDeviceValueNames[varIndex]));
Is it working for you out of the box ?
If some of the developers here want to further investigate the problem, i could give a test account to my server and send my modified general HTTP Interface ?
Regards
Klaus
Re: generic http + problems with special characters ?
Hi Klaus,
I use version 105 without any modifications and it can successfully publish to demo.volkszahler.org and to my internal installation.
The URLEncode is no problem here.
the configuration works with these settings:
Config:
- Protocol: Generic HTTP
- Locate Controller: Use Hostname
- Controller Hostname: demo.volkszaehler.org
- Controller Port: 80
Tools - Advanced:
- Publish Template: middleware.php/data/%tskname%.json?operation=add&value=%value%
Devices:
- Name: -- UUID from volkszaehler.org --
- Delay: 60
- IDX: 1
- Send Date: checked
this works since R88 where the taskname and valuename fields were extended to 40
and R101 where the hostname was posted - required for webservers with several vhosts - maybe this could have been an issue with your server at 1und1.
regards,
Timo
I use version 105 without any modifications and it can successfully publish to demo.volkszahler.org and to my internal installation.
The URLEncode is no problem here.
the configuration works with these settings:
Config:
- Protocol: Generic HTTP
- Locate Controller: Use Hostname
- Controller Hostname: demo.volkszaehler.org
- Controller Port: 80
Tools - Advanced:
- Publish Template: middleware.php/data/%tskname%.json?operation=add&value=%value%
Devices:
- Name: -- UUID from volkszaehler.org --
- Delay: 60
- IDX: 1
- Send Date: checked
this works since R88 where the taskname and valuename fields were extended to 40
and R101 where the hostname was posted - required for webservers with several vhosts - maybe this could have been an issue with your server at 1und1.
regards,
Timo
Re: generic http + problems with special characters ?
Hello Timo,
very strange, i tried all possible configurations
I used the newest ESP-Easy-Version, maybe a bug there ?
If you, or somebody else, like, i could give you a test account to my server, send me a private mail here
Volkszaehler together with esp-easy makes a really good thing, hopefully it´s working 100% soon
very strange, i tried all possible configurations
I used the newest ESP-Easy-Version, maybe a bug there ?
If you, or somebody else, like, i could give you a test account to my server, send me a private mail here
Volkszaehler together with esp-easy makes a really good thing, hopefully it´s working 100% soon
Re: generic http + problems with special characters ?
Hello
I have a Same Problem
I have a firmware R108
I have a Same Problem
I have a firmware R108
Who is online
Users browsing this forum: No registered users and 20 guests