public sResponse fetch(sRequest request) { try { WebRequest req = request.getRequest(); req.ContentLength = request.getPostBodyLength(); if (request.getPostBodyLength() > 0) { req.GetRequestStream().Write(request.getPostBody(), 0, request.getPostBodyLength()); } sResponse resp = makeResponse(req); return(resp); } catch (Exception) { return(sResponse.error()); } }
public sResponse fetch(sRequest request) { try { WebRequest req = request.getRequest(); req.ContentLength = request.getPostBodyLength(); if (request.getPostBodyLength() > 0) { req.GetRequestStream().Write(request.getPostBody(),0,request.getPostBodyLength()); } sResponse resp = makeResponse(req); return resp; } catch (Exception) { return sResponse.error(); } }