Advice on Post action

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
Just trying to get my head around creating new accounts via the Post action, but would appreciate some help.

Here is my plan:

1) Use Get for the registration page, and grab the header for cookies,
2) Regex the cookies (to use in Post)
 
Последнее редактирование:

bigcajones

Client
Регистрация
09.02.2011
Сообщения
1 216
Благодарностей
683
Баллы
113
Ok Shabby,

Here is what I have found doing GET and POST requests on wordpress. Set the redirect to 1 on all your requests. Cookies that you need to login are in a redirect so you need to stop redirect so you can regex out cookie strings. Just fyi.
 

shabbysquire

Client
Регистрация
25.11.2012
Сообщения
544
Благодарностей
26
Баллы
28
Thanks, never thought to capture cookie on redirect.
 

LexxWork

Client
Регистрация
31.10.2013
Сообщения
1 190
Благодарностей
791
Баллы
113
in the last version curl redirects with the cookies, but if you've got some invalid\expired or "deleted" cookies, must delete them and not use the redirect...
 

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