M
Molz
Hi,
I'm writing a program on J2ME in which I have to do a connection to a
server using HTTPConnection.
I write this code:
connection=(HttpConnection)Connector.open("some
Url",Connector.READ_WRITE,true);
connection.setRequestProperty("Content-Type","text/html");
connection.setRequestProperty("Content-Length","" +
byteVector.length);
connection.setRequestMethod("POST");
When I try it at my home it works but when I try it at school (in
which there are a proxy server) it doesn't work.
I think the problem is the proxy. How can I set the use of the proxy
in the source code?
Thanks
Bye
I'm writing a program on J2ME in which I have to do a connection to a
server using HTTPConnection.
I write this code:
connection=(HttpConnection)Connector.open("some
Url",Connector.READ_WRITE,true);
connection.setRequestProperty("Content-Type","text/html");
connection.setRequestProperty("Content-Length","" +
byteVector.length);
connection.setRequestMethod("POST");
When I try it at my home it works but when I try it at school (in
which there are a proxy server) it doesn't work.
I think the problem is the proxy. How can I set the use of the proxy
in the source code?
Thanks
Bye