Le 20 juil. 08 à 19:55, Richard Nichols a écrit :

Hi

I'm looking for a simple example that will show me how to do an http POST with user and password in cocoa.

All I want to do is send some text to a php script but it expects the see the user and password and I'm not sure what classes to use and how to set them up.

I've looked at a number of examples on the web but they appear too complex or convoluted...

Thanks

If you just need send simple string value, you can use the easy way, encoding it as a "application/x-www-form-urlencoded"

See the following link for an sample code:
        
http://deusty.blogspot.com/2006/11/sending-http-get-and-post-from-cocoa.html


_______________________________________________

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

Reply via email to