Skip to content

HTTPS Question #214

@coolham123

Description

@coolham123

Hey,

Sorry in advance for the (i'm sure) very simple question here. I am trying to connect my model H+ to traccar (https://server.traccar.org/) but when I use the following settings, I get an error reply from traccar in the serial output log that says:

[HTTP] <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>400 Bad Request</title>
</head><body>
<h1>Bad Request</h1>
<p>Your browser sent a request that this server could not understand.<br />
Reason: You're speaking plain HTTP to an SSL-enabled server port.<br />
 Instead use the HTTPS scheme to access this URL, p

From my config.h:

#ifndef SERVER_HOST
// cellular network settings
#define CELL_APN "sp.telus.com"
// Freematics Hub server settings
#define SERVER_HOST "server.traccar.org"
#define SERVER_PROTOCOL PROTOCOL_HTTPS_POST
#endif

...

#if !SERVER_PORT
#undef SERVER_PORT
#if SERVER_PROTOCOL == PROTOCOL_UDP
#define SERVER_PORT 5170
#else
#define SERVER_PORT 443
#endif
#endif

Is there something I am doing wrong. I am using the stock telelogger firmware in the v5 folder. Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions