summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
52608ec)
+2004-11-05 Helge Hess <helge.hess@skyrix.com>
+
+ * WOSimpleHTTPParser.m: set a default file boundary size and max upload
+ size if the Defaults.plist was not loaded (eg in xmlrpc_call with
+ WOHTTPConnectionUseSimpleParser) (v4.5.88)
+
2004-11-15 Marcus Mueller <znek@mulle-kybernetik.com>
* v4.5.87
2004-11-15 Marcus Mueller <znek@mulle-kybernetik.com>
* v4.5.87
# v4.5.84 required libNGExtensions v4.5.127
# v4.3.42 requires libNGExtensions v4.3.116
# v4.5.84 required libNGExtensions v4.5.127
# v4.3.42 requires libNGExtensions v4.3.116
static Class NSStringClass = Nil;
static BOOL debugOn = NO;
static BOOL heavyDebugOn = NO;
static Class NSStringClass = Nil;
static BOOL debugOn = NO;
static BOOL heavyDebugOn = NO;
-static int fileIOBoundary = 16384;
-static int maxUploadSize = 256 * 1024; /* 256MB */
+static int fileIOBoundary = 0;
+static int maxUploadSize = 0;
+ (int)version {
return 1;
+ (int)version {
return 1;
heavyDebugOn = [ud boolForKey:@"WOSimpleHTTPParserHeavyDebugEnabled"];
fileIOBoundary = [ud integerForKey:@"WOSimpleHTTPParserFileIOBoundary"];
maxUploadSize = [ud integerForKey:@"WOSimpleHTTPParserMaxUploadSizeInKB"];
heavyDebugOn = [ud boolForKey:@"WOSimpleHTTPParserHeavyDebugEnabled"];
fileIOBoundary = [ud integerForKey:@"WOSimpleHTTPParserFileIOBoundary"];
maxUploadSize = [ud integerForKey:@"WOSimpleHTTPParserMaxUploadSizeInKB"];
+
+ if (maxUploadSize == 0)
+ maxUploadSize = 256 * 1024; /* 256MB */
+ if (fileIOBoundary == 0)
+ fileIOBoundary = 16384;
+
if (debugOn) {
NSLog(@"WOSimpleHTTPParser: max-upload-size: %dKB", maxUploadSize);
NSLog(@"WOSimpleHTTPParser: file-IO boundary: %d", fileIOBoundary);
if (debugOn) {
NSLog(@"WOSimpleHTTPParser: max-upload-size: %dKB", maxUploadSize);
NSLog(@"WOSimpleHTTPParser: file-IO boundary: %d", fileIOBoundary);
}
else if (self->clen > maxUploadSize*1024) {
/* entity is too large */
}
else if (self->clen > maxUploadSize*1024) {
/* entity is too large */
+ NSString *s;
+
+ s = [NSString stringWithFormat:@"The maximum HTTP transaction size was "
+ @"exceeded (%d vs %d)", self->clen, maxUploadSize * 1024];
return [NSException exceptionWithName:@"LimitException"
return [NSException exceptionWithName:@"LimitException"
- reason:
- @"the maximum HTTP transaction size was exceeded"
- userInfo:nil];
+ reason:s userInfo:nil];
}
else if (self->clen > fileIOBoundary) {
/* we are streaming the content to a file and use a memory mapped data */
}
else if (self->clen > fileIOBoundary) {
/* we are streaming the content to a file and use a memory mapped data */
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
02111-1307, USA.
*/
#include "NGXmlRpcClient.h"
#include "common.h"
#include "NGXmlRpcClient.h"
#include "common.h"
--- /dev/null
+xmlrpc_client
+=============
+
+A shell tool to call XML-RPC web services.
+
+Note: you should set the WOHTTPConnectionUseSimpleParser default to YES to
+ ensure proper HTTP parsing.