×

Discussion Board

Results 1 to 5 of 5

Thread: 3650 adding :80

  1. #1
    Registered User
    Join Date
    Mar 2003
    Posts
    3

    3650 adding :80

    When a midlet wants to send a http request to www.something.com/bla the 3650 java environment is adding port 80 to the request. So the request is changed into www.something.com:80/bla
    Why is the 3650 interfering with the developers wishes?
    And what if I want to use another port, say 8080?

  2. #2
    Super Contributor
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    Port 80 is added automatically because it is the default port for http.
    If you want to access a different port all you have to do is specify the port in the url:
    Code:
    HttpConnection = Connector.open("www.something.com:8080/bla");
    Mind you, some (many) gateways will block any request that is not sent to port 80.

    shmoove

  3. #3
    Registered User
    Join Date
    Mar 2003
    Posts
    3
    The specific reason I'm bothered by this "feature" is that in (my case) between the midlet and the server is a gateway. That gateway is adding info to a http header when it sees the base URL 'www.something.com'. When 'www.something.com:80' is coming in, it does not add anything.
    Is there no way to get around this?

  4. #4
    Registered User
    Join Date
    Jan 2004
    Posts
    1

    3650 Port 80 problem

    I've a problem to connect to my Web Site through port other than 80 using J2ME. Since I have no problem to connect my Web Site using "Doris Browser" through the port 8082, I don't think the problem is due the ISP's gateway blocking the port 80.

    Are there anyone have the same experience, please share.

  5. #5
    Regular Contributor
    Join Date
    Mar 2003
    Location
    Rotterdam, Holland
    Posts
    118
    Isnt this more of a gateway problem than a phone/midp/implementation problem. The mentioned URL is perfectly valid. If the http server is running on 80 and that port is explicitly defined, it should still know that that's the HTTP server port imo.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×