Download MetaTrader 5

How can i send a cookie with WebRequest?

To add comments, please log in or register
Do you want to order an application? Find out how to obtain the desired result
Bogdan Alin Baltatu
2924
Bogdan Alin Baltatu 2015.06.15 14:33 

Hi,

When i call WebRequest function i receive a cookie in header response.

How can i set a cookie using WebRequest function?

My cookie look in this mode = " Cookie: JSESSIONID=B679D3E7495C944FD5407263E27E2315; Path=/; HttpOnly

Cookie: T=1474112508; Expires=Wed, 15-Jul-2015 12:19:44 GMT; Path=/; HttpOnly

Cookie: BI=E82F2EFB16A843E899F9C0CF18E92ED7; Expires=Thu, 12-Jun-2025 12:19:44 GMT; Path=/; HttpOnly "

Thanks 

Alain Verleyen
Moderator
30746
Alain Verleyen 2015.06.15 20:08  

Did you read the documentation of Webrequest() ?

If yes, what have you tried ?

Bogdan Alin Baltatu
2924
Bogdan Alin Baltatu 2015.06.18 07:47  
I resolve ..
I sent cookie as a string. 
On my fist try I send response header from first request and that is the reason for bad HTML response
To add comments, please log in or register