zzarbi / synology

PHP Implementation of Synology Download Station
MIT License
126 stars 58 forks source link

Cannot connect to Synology #6

Closed L1qu1d1c3 closed 10 years ago

L1qu1d1c3 commented 10 years ago

Hello zzarbi,

I have tried implementing your API to work on it but it doesn't seem to be working. When I run the PHP, it shows: Connect Session: AudioStation User: admin Requested Url: https://XXX.synology.me:5001/webapi/auth.cgi?account=admin&passwd=XXX&session=AudioStation&format=sid&api=SYNO.API.Auth&version=2&method=login Response code: 0 Result:

I replaced my personal information with XXX, there is nothing on Result:, but when I go to this URL on a different browser tab, it works, connects fine, it even gives me an ID.

How can I solve this?

Thank you

zzarbi commented 10 years ago

I'm using CURL I notice in the past that for x reason sometime CURL doesnt work on specific system. Another potential problem is that we request HTTPS page and your curl may have problem doing the handshake to get the https session.