On 11 Mar '08, at 11:56 PM, JanakiRam wrote:

        I've used couple of methods ( one from cocoa -
stringByAddingPercentEscapesUsingEncoding and another one from
CoreFoundation CFURLCreateStringByAddingPercentEscapes) , but they are not
encoding special characters such as @#$%&* etc..... .

Those will definitely do the job. Could you post a few lines of your code showing how you call them? The only thing I can imagine is that maybe you are expecting them to modify the string in place (they actually return a new string).

I've a requirement to  make
a call to CGI Script with some Text File Contents. I'm using NSURLRequest
for making a synchronous call.

Are you really trying to stuff the contents of a text file into a URL? It would be better to send the text in the body of a POST request (as is done with HTML form submissions.) URL parameters should be used for very short data that you know the format of (like numbers or dates or filenames). One problem you may run into is limits on URL length — there aren't any hard limits, but some proxies or web servers may reject URLs longer than some arbitrary length.

—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

Cocoa-dev mailing list ([email protected])

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 [EMAIL PROTECTED]

Reply via email to