Skip to content

docs unclear on how to basis auth #135

Open
@geetee24

Description

@geetee24

My code
http.connectionKeepAlive();
http.beginRequest();
*piRetCode = http.get( strPath );
http.sendBasicAuth ( "user", "pw" );
http.sendHeader( HTTP_HEADER_CONNECTION, "keep-alive" );
http.sendHeader( "Cache-Control", "max-age=0" );
http.sendHeader( "Accept", "application/json" );
http.endRequest();

but my server responds with a timeout 401....

is my code correct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    topic: documentationRelated to documentation for the projecttype: imperfectionPerceived defect in any part of project

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions