GET / POST header and content

Регистрация
16.05.2014
Сообщения
145
Реакции
25
Баллы
18
Can you make it possible to get reponse and header each in different variable?

Код:
Развернуть Свернуть Копировать
(?<=HTTP/1\.1\ )[\w\W]*?(?<!.)[\r\n]+

This works for headers
 
Последнее редактирование:
Wouldn't you just get it together, put in a list and extract first one-two lines, it's easy?
They might implement it but who knows when...
 

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