Send data via HTTP using already established connection RRS feed

  • Question

  • I am developing one application which briefly does the following

    It create a data session using specific APN(call it APN-1). This APN is different from the default APN(call it APN-2) set in the network setting.
    I have used the follwoing API to establish the connection
    ConnMgrMapConRef(); and ConnMgrEstablishConnectionSync();
    Connection is established successfully.
    Now i want to send some data throgh the HTTP . For that i am calling
    WebRequest.Create() and passing the URL in the parameter. 

    When WebRequest.Create() is executed then device starts connection with the default APN(APN-2 as mentioned above). It doesn't check that there is already a active data connection.

    So my requirement is that once the connection has been created using specific APN(APN-1). If after that i want to send data through HTTP then it should use the existing connection.

    I think WebRequest.Create() will always use the default APN for the connection. Is there any way to use the already active data connection to send and receive the data.

    Thursday, January 15, 2009 11:07 AM


All replies