An error occurred fetching the project authors.
  1. 27 Jul, 2017 1 commit
    • Romain Courteaud's avatar
      [erp5_http_proxy] Prototype of an usable HTTP proxy. · b03e0643
      Romain Courteaud authored
      It can be used with an external method by providing the URL to proxy as a query parameter:
      ERP5Site_getHTTPResource?url=URL
      
      The query is synchronous (no portal_activities), so, the Zope thread will be blocked until the external request is other.
      In order to prevent consuming all threads, there is a really aggressive timeout of 1 second only.
      This is enough for a RSS reader.
      If the timeout is to short, do not increase it, but change the proxy design to use portal_activities instead.
      
      For now, only authenticated user can use it (to prevent becoming an open proxy).
      Only GET query are allowed (until a use case required any other HTTP method).
      b03e0643