Question : ASP.NET

I am new to web programming. I need help with the following thing. I need to parse the calling URL and frame a new URL based on some values in the calling URL and redirect to a new URL. Can you please give me some directions on how do i do this??
EX: http://www.saphris.com/NCP/RM201950 this is the calling URL

I want to parse this and create a new URL some thing like

http://www.saphris.com/rdProcess.aspx?CCN=201950

Thanks in advance for your help.

Answer : ASP.NET

asuming that you're using NSURLRequest and NSURLConnection and friends, and you should simply stick to the delegation-paradigm and implement the appropreate delegate-methods, there's no need to bother with threading or (a)synchronous-issues.
connections are attached to the runloop, and will notify the delegate whenever something interesting happens. they are running on the main thread, but won't block.

About using POST instead of GET - there's not much to it.
Below a super simple setup, where is asumed that myDelegate, self.url, indata have already been assigned the appropreate values..
(not tested, cut/pasted as is..)
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:

NSMutableURLRequest * request = [NSMutableURLRequest
				requestWithURL:self.url
				cachePolicy:NSURLCacheStorageNotAllowed
				timeoutInterval:10.0];
[request setHTTPMethod:@"POST"];
[request setHTTPBody:indata];


NSURLConnection * connection = [NSURLConnection connectionWithRequest:request
							     delegate:mdelegate];
Random Solutions  
 
programming4us programming4us