Home

20 Мар, 2007

Perl. Модуль CGI.pm - обновился

Модуль CGI.pm обновился, одним из важных дополнений является поддержка XForms POST.

# Process XForms postings. We know that we have XForms in the
# following cases:
# method eq 'POST' && content-type eq 'application/xml'
# method eq 'POST' && content-type =~ /multipart\/related.+start=/
# There are more cases, actually, but for now, we don't support other
# methods for XForm posts.
# In a XForm POST, the QUERY_STRING is parsed normally.
# If the content-type is 'application/xml', we just set the param
# XForms:Model (referring to the xml syntax) param containing the
# unparsed XML data.
# In the case of multipart/related we set XForms:Model as above, but
# the other parts are available as uploads with the Content-ID as the
# the key.
# See the URL below for XForms specs on this issue.
# http://www.w3.org/TR/2006/REC-xforms-20060314/slice11.html#submit-options

Да-а, с каждым обновлением дистрибутив CGI.pm становится все меньше и меньше, только 249 кБ это все равно много, и сам код оставляет желать лучшего.

Вот есть повод обновить мне свой модуль HTTP::Request::Interface (+ HTTP::Request::Interface::CGI, HTTP::Request::Interface::ModPerl, HTTP::Request::Interface::FastCGI, HTTP::Request::Interface::POE, HTTP::Request::Interface::Cmd) и выложить на CPAN :)
sharifulin

Декабрь 2009

Вс Пн Вт Ср Чт Пт Сб
  12345
6789101112
13141516171819
20212223242526
2728293031  

Реклама

Метки

На этой странице

Трансляция

RSS Atom
Разработано LiveJournal.com