Add cookie & change its expiration date

  • Автор темы Автор темы Aronax
  • Дата начала Дата начала

Aronax

Client
Регистрация
29.01.2015
Сообщения
214
Реакции
64
Баллы
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
 
[QUOTE = "nicanil, post: 579357, member: 12819"]
You can use CookieContainer and its Add method
[/ QUOTE]
Eactly what I needed. Thanks!
 

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