joshnesbitt/google_url_shortener

I'm got 403 as response for postMethod

fabiolindemberg opened this issue · 2 comments

The following post request every returns 403 message.

TMedico = class
public
  id_corporativo : string;
  nome : string;
  cpf : string;
  crm : string;

  constructor Create(id_corporativo, nome, cpf, crm : string);
end;

procedre myForm.myMethod(medico :TMedico);
begin
  restClient := TRestClient.Create(nil);
  restClient.ConnectionType := THttpConnectionType.hctIndy;
  restClient.Resource('http://starttec.com.br/apimed/api/medico/')
            .Accept(RestUtils.MediaType_Json)
            .ContentType(RestUtils.MediaType_Json)
            .Post<TMedico>(medico);
end;

image

bf4 commented

What language is that?

This looks like it could be a duplicate of #4 if you're trying to run the CLI from an IDE. Closing unless @fabiolindemberg has any more information.