[todo]
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.rdoc
URLRequestBuilder.h
URLRequestBuilder.m

README.rdoc

DESCRIPTION

The builder allows to create GET/POST requests with attached files.

Tested with Rails 3

USAGE

// fill NSDictionary with request parameters
NSDictionary *params = [NSDictionary dictionaryWithObjectsAndKeys:
                                  @"first value", @"param_name_1",
                                  @"second value", @"param_name_2", nil];

URLRequestBuilder *builder = [[URLRequestBuilder alloc] initWithMethod:RequestMethodPost 
                                                                   url:@"http://some.host.name/path"
                                                            parameters:params];
// get NSURLRequest initialized with parameters
NSURLRequest * request = builder.request;

NSURLConnection * conn = [[NSURLConnection alloc] initWithRequest:request delegate:self];
[builder release];
[params release];
...