This content has been marked as final. Show 6 replies
I think the HTTPService call automatically changes to GET if the POST body is empty.
Put something in the request object and try it again.
Your suggested solution was very similar to what it was: I needed to add EventListeners for the result and fault events, e.g.:
Doing that it seemed to work properly and send a POST request.
Hmm, you are saying that adding event listeners changed the method of the HTTPService call?
I would not expect this.
Yeah, I was not expecting this either. I would have thoughts an error would have been thrown saying it eventListeners were required or something similar.
Event listeners are not required.
How did you show this:
"inString: GET / HTTP/1.1
Flex verion: 220.127.116.11459
Eclipse version: 3.2.1
I got it from printing out the data on the socket connection made by flex. All the java code for this is presented in my first post. Just change the mxxml line from:
httpServ.url = " http://wnyc0111712.develop.ubsw.net:8069";
to whatever your machine name is, ensuring the port is the same as what's declared with the ServerSocket. Then just run the java class then the flex app and it will printout.