Beispiel #1
0
 def parsePOST(headers,message):
       
     if ServerRequest.isMultiPart(headers['content-type']):
         request = HttpMethodParser.handleMultipart(headers,message)
     
     else:
         request = HttpMethodParser.handleSinglePart(headers, message)
    
     #after this is done the application XML parser should be adapted to handle non xml style commands
     #next step is to make the parsing more general to work with browser, NOTE done in web branch
     
     return request
 def parsePOST(headers,message):
       
     if ServerRequest.isMultiPart(headers['content-type']):
         request = HttpMethodParser.handleMultipart(headers,message)
     
     else:
         request = HttpMethodParser.handleSinglePart(headers, message)
    
     #after this is done the application XML parser should be adapted to handle non xml style commands
     #next step is to make the parsing more general to work with browser, NOTE done in web branch
     
     return request