Rest API cookie issue

Hi

Has anyone managed to interact with rest api that is not using ssl?

I have a weird senario where im able to connect to the api and successfully login but when i make consequent calls it fails. I understand that I should be storing the cookie info but here is the weird part. With changing my client code, if I run the script on the same server via the ssl connect then all is good.

Am I missing something?

Im using PCSoft Windev for creating rest client.

await some feedback.

regards
Hemant

Hi

Figured this out, if anyone else using windev make sure you use a request object and provide the cookies to the request object from login response.

Also another key point it to make sure that the url is coded correctly using urlencode.

Doing this will work perfectly.

Im loving erpnext more and more… :wink:

Im using the api to intergrate 2 systems and slowly migrtate data across.

This post can be closed…

regards
Hemant

1 Like