×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    54

    Connection issue

    Hi all,

    I'm currently writing a client mobile app which contacts IIS server.
    I use: connector.open (url) to open connection with the server.
    but when trying to send data to the server (throught the output stream I got from the http connection) -the server gets my request, but also gets an error of length = 0. How can I edit the length attribute in the header? I looked for a function which lets me do it (in the api) but didn't find one.

    Thanks,
    Alon

  2. #2
    Nokia Developer Expert
    Join Date
    Jun 2005
    Posts
    923

    Re: Connection issue

    HttpConnection conn = ...;

    conn.setRequestProperty("Content-Length", [yourlengthhere]);

Similar Threads

  1. HTTP Connection issue
    By akhilss in forum Mobile Java Networking & Messaging & Security
    Replies: 2
    Last Post: 2005-09-12, 19:31
  2. 6820 http connection issue
    By jennydeng in forum Mobile Java General
    Replies: 0
    Last Post: 2004-09-30, 03:44
  3. 7110 Cable Connection Issue
    By dgrunited in forum PC Suite API and PC Connectivity SDK
    Replies: 1
    Last Post: 2004-09-29, 09:14
  4. 6600 Connection URL with semicolon (;) issue
    By msilvest@confsystem.com in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2004-08-17, 11:47
  5. HTTP Connection issue on 7650
    By colinarmstrong in forum Mobile Java General
    Replies: 18
    Last Post: 2003-04-18, 20:54

Posting Permissions

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