Add cookie & change its expiration date

Aronax

Client
Регистрация
29.01.2015
Сообщения
205
Благодарностей
59
Баллы
28
Working on a bot with get / post requests. I'm using old profiles which have been active in browser therefore I already have cookies saved in profile. Therefore I use these profiles in the requests bot
The problem is that a specific cookie expires after just 1 minute and I can not get it fast enough in browser bot so that I could use it in the request bot.

Is there a way to "artificially" add cookies in the zenno profile and, also, to modify their expiration date / time?

Thanks
 

nicanil

Client
Регистрация
06.03.2016
Сообщения
2 242
Благодарностей
1 820
Баллы
113
You can use CookieContainer and its Add method
 
  • Спасибо
Реакции: Aronax

Aronax

Client
Регистрация
29.01.2015
Сообщения
205
Благодарностей
59
Баллы
28
[QUOTE = "nicanil, post: 579357, member: 12819"]
You can use CookieContainer and its Add method
[/ QUOTE]
Eactly what I needed. Thanks!
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)