1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Shareasale HTTPS Socket Integration

Discussion in 'Affiliate Programs' started by cenkbut, Aug 2, 2006.

  1. #1
    Has anyone tried it?

    I've been trying for several days, with a C# code that I know it runs with different http sockets.

    Has anyone integrated this option, shareasale provides?
    Any help regarding the integration and sourcecode will be very appreciated.

    here is the code in C#, ASP.NET:

    string parameters = "amount=" + amount + "&tracking=" + userid + "&transtype=sale&merchantID=" + merchantID + "&userID=" + ssaID;
    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://www.shareasale.com/q.cfm?" + parameters );
    request.ClientCertificates.AddRange(certificates);
    request.Method = "GET";

    StreamReader stIn = new StreamReader(request.GetResponse().GetResponseStream());
    string strResponse = stIn.ReadToEnd();
    stIn.Close();

    Returns an exception of:'The underlying connection was closed: Could not establish trust
    relationship for the SSL/TLS secure channel.
    at System.Net.HttpWebRequest.GetResponse()'

    Please anyone help
     
    cenkbut, Aug 2, 2006 IP
  2. cenkbut

    cenkbut Peon

    Messages:
    218
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Any ideas?
     
    cenkbut, Aug 2, 2006 IP