Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

120
Visualizações
New web hosting breaks webcam that worked with old web hosting

I have a hobby weather website that I recently moved from HostGator web hosting to Hostinger web hosting. Everything works well at the new host with the exception of my webcam. The cam page on the website uses a script that pulls a static image from my camera, displays it, and then updates it every 1 seconds... this worked very well with the old hosting and fails with the new hosting. I'm a complete dunce when it comes to coding and don't know how to fix this issue. I do suspect however that the issue is the way SSL is forced for everything on my new host. The URL the script is pulling from my camera is: http://172.100.163.136/webcapture.jpg?command=snap&channel=1&user=viewer&password

That URL works in a browser as http but not https

Here's the script I'm using:

<script type="text/javascript">
    // <![CDATA[
    var refreshrate = 1;          // seconds between refresh
    var image       = "http://172.100.163.136/webcapture.jpg?command=snap&channel=1&user=viewer&password";    // image name
    var imgwidth    = 665;        // image width
    var imgheight   = 374;        // image height
    var imgalt      = "WebCam Image";
    var imgtitle    = "header=[WebCam Image] body=[WebCam Image Automatically Updated Every 1-2 Seconds] delay=[500]";
    function refresh() { document.images["pic"].src = image + "?" + new Date(); setTimeout('refresh()', refreshrate * 500); }
    document.write('<img src="' + image + '" alt="' + imgalt + '" title="' + imgtitle + '" name="pic" id="pic" width="' + imgwidth + '" height="' + imgheight + '" style="border:1px dashed gray;"/>');
    if(document.images)window.onload=refresh;
    // ]]>
    </script>

Does anyone have an idea on how to fix this?

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

OK, I found the solution... The new host was "forcing" https with the let's encrypt SSL solution. I was able to change a setting to end forcing https but yet leave SSL intact. Webcam working again!

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda