View Single Post
  #5 (permalink)  
Old December 4th, 2003, 06:13 PM
MichaelTJ MichaelTJ is offline
Authorized User
Join Date: Oct 2003
Location: , , Norway.
Posts: 45
Thanks: 0
Thanked 0 Times in 0 Posts

I found it at last. Thanks for the follow up Peter, alwasy enspire me to look deeper with that signature of your's..

Here is the workin code for my problem (AT LAST, yuuhuuu)

*********Working Code****************
    Private Sub bt4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles bt4.Click
        Dim myWebClient As New System.Net.WebClient
        Dim text As String = bt4txt.Text
        text = SQL.URLEncode(text)
        Dim mob As String = SQL.URLEncode(bt4mob.Text)
        'CODE is Pre encoded username/password for Authorization
        Dim CODE As String = "DFGdfGSDFgtgGREGGFhdfFB45ygrFG"
        myWebClient.Headers.Add("Authorization", "Basic " & CODE)
        Dim responseArray As Byte()
'SQL.SMSID is an unique identifier
        responseArray = myWebClient.DownloadData("" & SQL.SMSID & "&From=1900&To=%2b" & mob & "&Encoding=ISO-8859-1&Type=text&Data=" & text & "&Price=1")
        Dim response1 As String
        response1 = System.Text.Encoding.ASCII.GetString(responseArray )
    End Sub
**********************END CODE**********************
I can post my SMSID, encoder, decoder if anybody is interrested

All help is Good help!