|
|
#1 |
|
how to post an xml file to a server?
Hi all..
I want to send a xml file to a particular server in my iPhone application... Kindly reply with what class i want to make use of? i ddnt find any HTTP classes.... (like httpRequest or httpResponse ) Thanks...
|
|
|
|
0
|
|
|
#2 |
|
Not really sure, but the easiest way may be to wrap the UNIX command curl in an NSTask. I've used this technique for desktop Cocoa apps, I think it would probably work in an iPhone app as well. A long time ago there were rumors of an NSUpload class, but I don't think anything like that ever made it to daylight. NSURLConnection appears to be mostly for getting things off the net and not the other way around. Do you need to get progress as your file is uploaded or is it enough to send it on its way and be done with it? If the latter, curl is very easy to use.
__________________
Go outside, the graphics are amazing! |
|
|
|
0
|
|
|
#3 | |
|
Quote:
But i ddnt get what u meant by "progress". I just want to send and xml file when user taps "Place my Order" button, and show the user a uploading progress (UI part) and finally a message in alertView "SUCCESSFULLY PLACED UR ORDER"..... (If u are aware of MelissaData addresss Verification) i Think my criteria looks same as we using melissaData xml upload for address verification. i did it windows Mobile with apt APIs, beinga newbie to apple environment i ddnt find any thing regarding this. Hope u can guide me little more specific... |
||
|
|
0
|
|
|
#4 | |
|
Quote:
I didnt get the necessary inof from any response.. Thats y i am askng again??? How to request a "POST" using NSURLRequest class methods??? I want to send a xml to url http://yyyy.mydomain.com/action.do. Also i want to catch the xml file which is the response for that request... |
||
|
|
0
|
|
|
#5 | ||
|
Quote:
Quote:
|
|||
|
|
0
|
|
|
#6 |
|
did it....
Hi all.
I did it by making use of NSMutableRequest's setHTTPMethod and setHTTPBody methods.... Thnaks .... |
|
|
|
0
|
![]() |
|
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| thread | Thread Starter | Forum | Replies | Last Post |
| How to supercharge Mini? | ranny2 | Mac mini | 18 | Oct 27, 2011 08:53 PM |
| How To Remove Server Part Of Lion? | hhaydenn | iMac | 2 | Aug 18, 2011 05:21 PM |
| how to export an XML with Plist in this schema? | saleh.hi.62 | Mac Programming | 2 | Jul 27, 2011 01:09 AM |
| How to play a MIDI file to an external MIDI device? | ChrisA | Digital Audio | 2 | Sep 13, 2010 12:29 PM |
| how to convert an appleworks file to a PDF | kaner | Mac Applications and Mac App Store | 2 | May 13, 2005 11:41 AM |
All times are GMT -5. The time now is 08:40 PM.








Linear Mode

