Re: post http problem in cocoa
Re: post http problem in cocoa
- Subject: Re: post http problem in cocoa
- From: Claudio Procida <email@hidden>
- Date: Sat, 02 Sep 2006 19:28:21 +0200
Athahar ha scritto:
Hi i'm trying to build a simple addition tool, taking two numbers from
the
user input in Cocoa, and processing in a server via HTTP post method.
in the server i've a java program to accept the variables from the cocoa
appln.
but my java program is not able to receive the variables.
what could be the problem with my code.
[snip]
tempinputs = [NSString stringWithCString:"input_1="];
inputs = [tempinputs stringByAppendingFormat:@"%@ &input_2=%@",
number1,number2];
I didn't investigate your code any further, but it seems that there's an
extra space between the first string placeholder %@ and the ampersand &
Did you read the logs of your Tomcat/whatever servlet container?
Claudio
--
http://www.emeraldion.it
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden