How can i send a cookie with WebRequest?

To add comments, please log in or register
Bogdan Alin Baltatu
2001
Bogdan Alin Baltatu  

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
40784
Alain Verleyen  

Did you read the documentation of Webrequest() ?

If yes, what have you tried ?

Bogdan Alin Baltatu
2001
Bogdan Alin Baltatu  
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