http request #5952
Replies: 1 comment
-
Posted at 2017-12-26 by opichals Hey! It appears the host parameter might be the problem, try stripping the http:// from there:
(oops perhaps that is just this forum problem that it tries to convert all hostnames to a link? In the edit field of this post there is no "http://" in the host field value) Posted at 2017-12-26 by tempos thanks for your interest. I've tried without http. this didn't help Posted at 2017-12-26 by opichals And now try with a colon in the protocol. Like Posted at 2017-12-26 by tempos Thanks. Just tried. Got response:
Did you get xml in response? Posted at 2017-12-26 by tempos With options like
I'm not setting port. And host also without "http" part. Response look follow:
Posted at 2018-01-04 by @gfwilliams The issue seems to be that the protocol you're using needs HTTPS, but it isn't supported in Espruino for ESP8266. Instead, you'd need an Espruino WiFi or ESP32. Posted at 2018-01-04 by tempos Got it. Thanks |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2017-12-25 by tempos
Hello!
I'm trying to parse xml from url. My code looks like:
And I got response:
Seems espruino tries to get host by it's IP, but as I know target site is not accessible by it's IP. Typing url
in browser's address line will return rss feed
So my question is there any workaround for that?
Would appreciate any help
Beta Was this translation helpful? Give feedback.
All reactions