<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></head><body><div>If you ever need to test your connection to anything (web/smtp/databases etc) try using a telnet client (an installable feature on windows)</div><div><br></div><div>telnet <hostname> <port></div><div><br></div><div>If you get a timeout then the host or port is not accessible to you (firewalled). A blank screen on the other hand indicates a successful connection.</div><div><br></div><div>Chris</div><div><br></div><div id="composer_signature"><div style="font-size:85%;color:#575757">Sent from my Samsung Galaxy smartphone.</div></div><div style="font-size:100%;color:#000000"><div>-------- Original message --------</div><div>From: Nikolay Shishkov <nshishkov@yahoo.com> </div><div>Date: 01/07/2015  11:01 am  (GMT+00:00) </div><div>To: OVMS Developers <ovmsdev@lists.teslaclub.hk> </div><div>Subject: Re: [Ovmsdev] web api </div><div><br></div></div><div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px"><div dir="ltr"><span>I was able to log in fine from another network... </span></div><div dir="ltr"><span>I will chase down if it is our IT or the internet provider that is blocking traffic.</span></div><div dir="ltr"><span>Thanks again for the help,</span></div><div dir="ltr"><span>Nikolay</span></div>  <br><div class="qtdSeparateBR"><br><br></div><div class="yahoo_quoted" style="display: block;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif; font-size: 16px;"> <div dir="ltr"> <font size="2" face="Arial"> On Wednesday, July 1, 2015 11:54 AM, Nikolay Shishkov <nshishkov@yahoo.com> wrote:<br> </font> </div>  <br><br> <div class="y_msg_container"><div id="yiv1517888559"><div><div style="color:#000;background-color:#fff;font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"><div>Thanks Mark, </div><div>I am getting </div><div dir="ltr"><span class="yiv1517888559" style="color:rgb(119, 119, 119);font-family:'Segoe UI', Tahoma, sans-serif;font-size:13.0000495910645px;line-height:24px;text-transform:uppercase;background-color:rgb(247, 247, 247);">ERR_CONNECTION_TIMED_OUT</span><br clear="none"></div><div dir="ltr"><span class="yiv1517888559" style="color:rgb(119, 119, 119);font-family:'Segoe UI', Tahoma, sans-serif;font-size:13.0000495910645px;line-height:24px;text-transform:uppercase;background-color:rgb(247, 247, 247);"><br clear="none"></span></div><div dir="ltr">I will try from another network... I am starting to have a suspission that our IT blocked some ports...</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Nikolay</div>  <br clear="none"><div class="yiv1517888559qtdSeparateBR"><br clear="none"><br clear="none"></div><div class="yiv1517888559yahoo_quoted" style="display: block;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv1517888559yqt3963990299" id="yiv1517888559yqt64307"><div dir="ltr"> <font size="2" face="Arial"> On Wednesday, July 1, 2015 11:49 AM, Mark Webb-Johnson <mark@webb-johnson.net> wrote:<br clear="none"> </font> </div>  <br clear="none"><br clear="none"> <div class="yiv1517888559y_msg_container"><div id="yiv1517888559"><div>Here’s my test:<div class="yiv1517888559"><br clear="none" class="yiv1517888559"></div><blockquote class="yiv1517888559" style="margin:0 0 0 40px;border:none;padding:0px;"><div class="yiv1517888559">$  curl -s -X GET -c ~/Downloads/ovms-cookie -v "<a rel="nofollow" shape="rect" class="yiv1517888559" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="https://tmc.openvehicles.com:6869/api/cookie?username=USER&password=PASSWORD">https://tmc.openvehicles.com:6869/api/cookie?username=USER&password=PASSWORD</a></div><div class="yiv1517888559"><div class="yiv1517888559">* Hostname was NOT found in DNS cache</div><div class="yiv1517888559">*   Trying 54.243.136.230...</div><div class="yiv1517888559">* Connected to <a rel="nofollow" shape="rect" class="yiv1517888559" target="_blank" href="http://tmc.openvehicles.com/">tmc.openvehicles.com</a> (54.243.136.230) port 6869 (#0)</div><div class="yiv1517888559">* TLS 1.2 connection using TLS_DHE_RSA_WITH_AES_256_CBC_SHA256</div><div class="yiv1517888559">* Server certificate: <a rel="nofollow" shape="rect" class="yiv1517888559" target="_blank" href="http://tmc.openvehicles.com/">tmc.openvehicles.com</a></div><div class="yiv1517888559">* Server certificate: COMODO RSA Domain Validation Secure Server CA</div><div class="yiv1517888559">* Server certificate: COMODO RSA Certification Authority</div><div class="yiv1517888559">* Server certificate: AddTrust External CA Root</div><div class="yiv1517888559">> GET /api/cookie?username=USER&password=PASSWORD HTTP/1.1</div><div class="yiv1517888559">> User-Agent: curl/7.37.1</div><div class="yiv1517888559">> Host: <a rel="nofollow" shape="rect" class="yiv1517888559" target="_blank" href="http://tmc.openvehicles.com/">tmc.openvehicles.com</a>:6869</div><div class="yiv1517888559">> Accept: */*</div><div class="yiv1517888559">></div><div class="yiv1517888559">* HTTP 1.0, assume close after body</div><div class="yiv1517888559">< HTTP/1.0 200 Authentication ok</div><div class="yiv1517888559">< Content-Type: text/plain</div><div class="yiv1517888559">< Expires: Wed, 01 Jul 2015 09:46:18 GMT</div><div class="yiv1517888559">* Added cookie ovmsapisession=“<REDACTED>" for domain <a rel="nofollow" shape="rect" class="yiv1517888559" target="_blank" href="http://tmc.openvehicles.com/">tmc.openvehicles.com</a>, path /api/, expire 0</div><div class="yiv1517888559">< Set-Cookie: ovmsapisession=<REDACTED></div><div class="yiv1517888559">< Connection: close</div><div class="yiv1517888559">< Cache-Control: max-age=0</div><div class="yiv1517888559">< Content-Length: 9</div><div class="yiv1517888559">< Access-Control-Allow-Origin: *</div><div class="yiv1517888559">< Date: Wed, 01 Jul 2015 09:46:18 GMT</div><div class="yiv1517888559"><</div><div class="yiv1517888559">Login ok</div></div></blockquote><div class="yiv1517888559"><br clear="none" class="yiv1517888559"></div><div class="yiv1517888559">Also tried 6868 for http, and ok.</div><div class="yiv1517888559"><br clear="none" class="yiv1517888559"></div><div class="yiv1517888559">What is the error you are getting?</div><div class="yiv1517888559"><br clear="none" class="yiv1517888559"></div><div class="yiv1517888559">Regards, Mark.</div><div class="yiv1517888559"><br clear="none" class="yiv1517888559"><div><blockquote class="yiv1517888559" type="cite"><div class="yiv1517888559yqt4007538382" id="yiv1517888559yqt74909"><div class="yiv1517888559">On 1 Jul, 2015, at 5:41 pm, Nikolay Shishkov <<a rel="nofollow" shape="rect" class="yiv1517888559" ymailto="mailto:nshishkov@yahoo.com" target="_blank" href="mailto:nshishkov@yahoo.com">nshishkov@yahoo.com</a>> wrote:</div><br clear="none" class="yiv1517888559Apple-interchange-newline"><div class="yiv1517888559"><div class="yiv1517888559"><div class="yiv1517888559" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv1517888559" dir="ltr" id="yiv1517888559yui_3_16_0_1_1435738502749_17999">The following one:</div><div class="yiv1517888559" dir="ltr" id="yiv1517888559yui_3_16_0_1_1435738502749_17999"><span class="yiv1517888559" id="yiv1517888559yui_3_16_0_1_1435738502749_17998"><a rel="nofollow" shape="rect" class="yiv1517888559" id="yiv1517888559yui_3_16_0_1_1435738502749_17995" target="_blank" onclick="return theMainWindow.showLinkWarning(this)" href="http://tmc.openvehicles.com:6868/api/cookie">http://tmc.openvehicles.com:6868/api/cookie</a></span></div><div class="yiv1517888559" dir="ltr" id="yiv1517888559yui_3_16_0_1_1435738502749_17999"><br clear="none" class="yiv1517888559"></div><div class="yiv1517888559" dir="ltr" id="yiv1517888559yui_3_16_0_1_1435738502749_17999">Should I use another one?</div>  <br clear="none" class="yiv1517888559"><div class="yiv1517888559qtdSeparateBR"><br clear="none" class="yiv1517888559"><br clear="none" class="yiv1517888559"></div><div class="yiv1517888559yahoo_quoted" style="display:block;"> <div class="yiv1517888559" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv1517888559" style="font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:16px;"> <div class="yiv1517888559" dir="ltr"> <font class="yiv1517888559" size="2" face="Arial"> On Wednesday, July 1, 2015 11:39 AM, Mark Webb-Johnson <<a rel="nofollow" shape="rect" class="yiv1517888559" ymailto="mailto:mark@webb-johnson.net" target="_blank" href="mailto:mark@webb-johnson.net">mark@webb-johnson.net</a>> wrote:<br clear="none" class="yiv1517888559"> </font> </div>  <br clear="none" class="yiv1517888559"><br clear="none" class="yiv1517888559"> <div class="yiv1517888559y_msg_container"><div class="yiv1517888559" id="yiv1517888559"><div class="yiv1517888559">Seems ok for me. What URL are you using?<div class="yiv1517888559"><br clear="none" class="yiv1517888559"><div class="yiv1517888559"><blockquote class="yiv1517888559" type="cite"><div class="yiv1517888559yqt8641666684" id="yiv1517888559yqt15535"><div class="yiv1517888559">On 1 Jul, 2015, at 4:25 pm, Nikolay Shishkov <<a rel="nofollow" shape="rect" class="yiv1517888559" ymailto="mailto:nshishkov@yahoo.com" target="_blank" href="mailto:nshishkov@yahoo.com">nshishkov@yahoo.com</a>> wrote:</div><br clear="none" class="yiv1517888559Apple-interchange-newline"><div class="yiv1517888559"><div class="yiv1517888559"><div class="yiv1517888559" style="background-color:rgb(255, 255, 255);font-family:HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;font-size:16px;"><div class="yiv1517888559" id="yiv1517888559yui_3_16_0_1_1435738502749_11679">Hi Mark, </div><div class="yiv1517888559" id="yiv1517888559yui_3_16_0_1_1435738502749_11680"><br clear="none" class="yiv1517888559"></div><div class="yiv1517888559" id="yiv1517888559yui_3_16_0_1_1435738502749_11681">The web api seem to be inaccessible. Is it me or is it the server?</div><div class="yiv1517888559" id="yiv1517888559yui_3_16_0_1_1435738502749_11681"><br clear="none" class="yiv1517888559"></div><div class="yiv1517888559" id="yiv1517888559yui_3_16_0_1_1435738502749_11681">Nikolay</div></div></div>_______________________________________________<br clear="none" class="yiv1517888559">OvmsDev mailing list<br clear="none" class="yiv1517888559"><a rel="nofollow" shape="rect" class="yiv1517888559" ymailto="mailto:OvmsDev@lists.teslaclub.hk" target="_blank" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br clear="none" class="yiv1517888559"><a rel="nofollow" shape="rect" class="yiv1517888559" target="_blank" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br clear="none" class="yiv1517888559"></div></div></blockquote></div><br clear="none" class="yiv1517888559"></div></div></div><br clear="none" class="yiv1517888559"><div class="yiv1517888559yqt8641666684" id="yiv1517888559yqt34806">_______________________________________________<br clear="none" class="yiv1517888559">OvmsDev mailing list<br clear="none" class="yiv1517888559"><a rel="nofollow" shape="rect" class="yiv1517888559" ymailto="mailto:OvmsDev@lists.teslaclub.hk" target="_blank" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br clear="none" class="yiv1517888559"><a rel="nofollow" shape="rect" class="yiv1517888559" target="_blank" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br clear="none" class="yiv1517888559"></div><br clear="none" class="yiv1517888559"><br clear="none" class="yiv1517888559"></div>  </div> </div>  </div></div></div>_______________________________________________<br clear="none" class="yiv1517888559">OvmsDev mailing list<br clear="none" class="yiv1517888559"><a rel="nofollow" shape="rect" class="yiv1517888559" ymailto="mailto:OvmsDev@lists.teslaclub.hk" target="_blank" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br clear="none" class="yiv1517888559">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev<br clear="none" class="yiv1517888559"></div></div></blockquote></div><br clear="none" class="yiv1517888559"></div></div></div><br clear="none"><div class="yiv1517888559yqt4007538382" id="yiv1517888559yqt67821">_______________________________________________<br clear="none">OvmsDev mailing list<br clear="none"><a rel="nofollow" shape="rect" ymailto="mailto:OvmsDev@lists.teslaclub.hk" target="_blank" href="mailto:OvmsDev@lists.teslaclub.hk">OvmsDev@lists.teslaclub.hk</a><br clear="none"><a rel="nofollow" shape="rect" target="_blank" href="http://lists.teslaclub.hk/mailman/listinfo/ovmsdev">http://lists.teslaclub.hk/mailman/listinfo/ovmsdev</a><br clear="none"></div><br clear="none"><br clear="none"></div></div>  </div> </div>  </div></div></div></div><br><br></div>  </div> </div>  </div></div></body></html>