vivazzi / mql_requests

Requests is a simple HTTP library for mql4, built for human beings
MIT License
44 stars 22 forks source link

How get status_code #5

Open Ruslan618 opened 1 year ago

Ruslan618 commented 1 year ago

Thank, all work fine, but how i can get status_code on my request? The responce.status_code dont use in code. Can you help me plz.

Ruslan618 commented 1 year ago

I found colution. Need use function HttpQueryInfoA (wininet.h) with HTTP_QUERY_STATUS_CODE and conесе it to responce.status_code. Now all work good and can to use status code of answer.