#1 2016-09-16 16:41:35

macfly
Member
From: Brasil
Registered: 2016-08-20
Posts: 374

TCurlHTTP and private easy_setopt

Hi,

I'm trying to use TCurlHTTP to access services not mormot related.

But curl.easy_setopt is not accessible outside of SynCtrSock.pas, and i need to set some options like coFollowLocation to work properly.

Is there any way to access?

Or create a public/protected method in the next revision?

Like:

TCurlHTTP = class(THttpRequest)
  protected
     funtion SetOpt(...)..


function TCurlHTTP.SetOpt()...
  result := curl.easy_setopt(...)

Last edited by macfly (2016-09-16 16:45:04)

Offline

Board footer

Powered by FluxBB