On Fri, May 29, 2009 at 4:10 PM, Chris Purcell <haroldthehun...@mac.com> wrote:
> Hello,
>
> I'm trying to issue a "REPORT" request to a server, the HTTP Method header
> needs to look like this:
>
> REPORT /bernard/work/ HTTP/1.1
>
> So I use setHTTPMethod to set the HTTP Method: [theRequest
> setHTTPMethod:@"REPORT /bernard/work/"];
>
> But when I issue the request, the server returns an error, because there is
> an extra / in the request line:
>
> Bad request line: REPORT bernard/work/ / HTTP/1.1
>
>
>
> Am I doing this the wrong way or is this not possible?
>

You are doing it wrong, but you are close.  The method is only
"REPORT", so you should just:

    [req setHTTPMethod:@"REPORT"]

The "/bernard/work/" piece should be part of the NSURL you use to
initialize your request.


Jason
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to