• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: NSMutableURLRequest: How to change Request URI?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSMutableURLRequest: How to change Request URI?


  • Subject: Re: NSMutableURLRequest: How to change Request URI?
  • From: Lloyd Sargent <email@hidden>
  • Date: Mon, 5 Apr 2010 12:03:16 -0500

>>  It appears that the "/ HTTP/1.1\r\n" are added by NSMutableURLRequest.
>
>
> Yes; that is required by the spec. Otherwise the server would assume the client is using an ancient version of HTTP, which is not what you want to happen.

Got it.

>> But I need it to be "/submit.php?do=submit HTTP/1.1\r\n". So how do I make these changes?
>
>
> Are you sure you're setting the URL correctly? That bit is part of the URL. What is the returned value of [request URL] prior to placing the request into a connection?

Doh!!! Thanks, it's been a while and the mind gets rusty.

Yup, just added it to the URL and now it works just perfect! I'm a happy camper!

Cheers,

Lloyd_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden

  • Prev by Date: Re: NSMutableURLRequest: How to change Request URI?
  • Next by Date: Modal Window with dynamic nstextfield
  • Previous by thread: Re: NSMutableURLRequest: How to change Request URI?
  • Next by thread: Problem with NSData
  • Index(es):
    • Date
    • Thread