Skip to content

Commit

Permalink
Atualização cabeçalho Accept-Language: pt-br
Browse files Browse the repository at this point in the history
  • Loading branch information
ciagoss committed Jan 24, 2022
1 parent 2a4a224 commit 0a9aaed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions acompanhamento.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ Veja um exemplo de acesso utilizando o cURL_
$ curl -v -X POST --header 'Content-Type: application/json;charset=UTF-8' -k \
--header 'Authorization: Basic YWxhZGluQGRpc25leS5jb206b3BlbnNlc2FtZQ==' \
--header 'Accept-Language: pt-br' \
--header 'Accept: application/json' -d '{ \
"cpfCidadao": "08254631654", \
"dataEtapa": "10/10/2017", \
Expand Down Expand Up @@ -122,6 +123,7 @@ Veja um exemplo de acesso utilizando Java
HttpPost request = new HttpPost(url);
request.addHeader(HttpHeaders.AUTHORIZATION, "Basic " + "ZmFiaW8uZmVybmFuZGV");
request.addHeader("Content-Type", "application/json;charset=UTF-8");
request.addHeader("Accept-Language", "pt-br");
request.addHeader("Accept", "application/json");
StringEntity entity = new StringEntity(payload, ContentType.APPLICATION_JSON);
request.setEntity(entity);
Expand Down

0 comments on commit 0a9aaed

Please sign in to comment.