Possible API Error Report - CURLOPT_PROXY option

public function connect()
{
return new SeaTable\SeaTableApi\SeaTableApi([
‘url’ => ‘myurl’,
‘user’ => ‘myuser’,
‘password’ => ‘mypw’,
‘http_options’ => [
CURLOPT_PROXY => ‘myproxyurl’
]
]);
}

Proxy URL is ignored and I am getting a connetion timeout.

When proxy URL is set in /seatable-api-php/src/Internal/CurlHttpOptions.php in __construct function it is working!

I know this dirty fix only works until next compose …

Did I miss something or is this a bug/missing feature?

THX

@Karlheinz Do you know something about Peter’s issue?

Not really. I’m not sure if I understand the issue.

Hi Peter,
do you want to elaborate on your problem?

It’s as I wrote. I want to use the provided PHP Api. The PHP server ist on another network. For access to seatable you have do set a proxy but the CURLOPT_PROXY option is ignored when I use it.

To get it working I had zu edit your provided code (set the proxy in CurlHttpOptions.php in __construct function hardcoded).

Hi Peter, thanks for your posting, and I’m glad I finally found it.

Proxy settings are certainly useful. Can you briefly summarise which options you used (other than CURLOPT_PROXY?) and share the example values used (please remove private data)?

Then a future version of the library could support this directly via the $options array.

Thanks again.

public function connect()
{
return new SeaTable\SeaTableApi\SeaTableApi([
‘url’ => ‘myurl’,
‘user’ => ‘myuser’,
‘password’ => ‘mypw’,
‘http_options’ => [
CURLOPT_PROXY => ‘myproxyurl’
]
]);
}

myproxyurl → ‘http://myproxydnsname:8080’ & ‘myproxydnsname:8080’ & ‘myproxyIP:8080’

Nothing worked …