ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Как получить POST-запрос в собственном модуле?


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Как получить POST-запрос в собственном модуле?
  • From: "Aleus Essentia" <nginx-forum@xxxxxxxx>
  • Date: Tue, 17 Sep 2013 03:37:08 -0400
  • Dkim-signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=helium.jlkhosting.com; s=x; h=Date:Sender:From:References:In-Reply-To:Message-ID:Content-Transfer-Encoding:Content-Type:Subject:To; bh=iaixPYeqsTmZX5M4DhiZVUOuMd1uQry9aoEwFF3tEiE=; b=Knr2QkWRJHI2e3Yl2db5eOwfkoMvMXAPxZ1NHhcr0bP59FlG1f8LP9a322PE1EZJNR4AIEDhcFzZGjOUYhyUgVdEjYtTEiqGhEb0UVE0dmbhFZM1R7mLfsqSJzNRWm1bRCyiveLNx2DP9KnJcTbgabSeltmk27TKMXS5edXJhoo=;
  • In-reply-to: <CAL-L5YBaihpmrXv=vwA3x7HR9y-u7o_URTbQqNJEpsPakSq9_Q@mail.gmail.com>
  • References: <CAL-L5YBaihpmrXv=vwA3x7HR9y-u7o_URTbQqNJEpsPakSq9_Q@mail.gmail.com>

Как понимаю, нужно посмотреть функцию gx_http_read_client_request_body?

В самом ngx_http_dav_module.c такой код:

      case NGX_HTTP_PUT:
  
          if (r->uri.data[r->uri.len - 1] == '/') {
              ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
                            "cannot PUT to a collection");
              return NGX_HTTP_CONFLICT;
          }
  
          r->request_body_in_file_only = 1;
          r->request_body_in_persistent_file = 1;
          r->request_body_in_clean_file = 1;
          r->request_body_file_group_access = 1;
          r->request_body_file_log_level = 0;
  
          rc = ngx_http_read_client_request_body(r, ngx_http_dav_put_han
  
          if (rc >= NGX_HTTP_SPECIAL_RESPONSE) {
              return rc;
          }
  
          return NGX_DONE;

Posted at Nginx Forum: 
http://forum.nginx.org/read.php?21,242907,242911#msg-242911

_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.