Hello, on your code what type of page declarations did you use?
----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, October 27, 2003 5:11 AM
Subject: RE: ASP.NET & OpenSRS dev.
> My first suggestion is to use the built in WebRequest Class and ditch
> using "unmanaged code", as in the XMLHTTP COM object.
>
> <SNIP>
> Dim payload as string
> Dim req As WebRequest
> Dim RequestStream As Stream
> Dim ReceiveStream As Stream
> Dim sr As StreamReader
> req =
> WebRequest.Create("http://resellers-test.opensrs.net/resellers/index")
> req.Method = "POST"
> req.ContentType = "application/x-www-form-urlencoded"
> payload ="username=USERNAME_HERE"
> payload &="&password=PASSWORD_HERE"
> payload &="&action=authenticate"
> Dim utf8 As New UTF8Encoding
> Dim arBytes() As Byte = utf8.GetBytes(payload)
> req.ContentLength = arBytes.Length
> RequestStream = req.GetRequestStream()
> RequestStream.Write(arBytes, 0, arBytes.Length)
> RequestStream.Close()
> result = req.GetResponse()
> ReceiveStream = result.GetResponseStream()
> sr = New StreamReader(ReceiveStream,
> System.Text.Encoding.GetEncoding("utf-8"))
> Dim resp As String = sr.ReadToEnd
> Return resp
>
>
> </SNIP>
>
>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Monday, October 27, 2003 12:46 AM
> To:
> Subject: ASP.NET & OpenSRS dev.
>
>
> Heres my first crack at it with asp.net which does not seem to do
> anything:
>
> <%@ Page aspcompat=true %>
> <%
> Dim postdata
> Dim xml
> Dim strstatus
> Dim strretval
> Dim strarrayval
> Dim x_response_code
>
>
> postdata = postdata & "protocol=XCP"
> postdata = postdata & "&action=authenticate"
> postdata = postdata & "&object=user"
> postdata = postdata & "&action=authenticate"
>
> xml = Server.CreateObject("Microsoft.XMLHTTP")
> xml.open ("GET", "http://resellers-test.opensrs.net/index?" &
> PostData & "", false)
> xml.send ("")
> strStatus = xml.Status
> strRetval = xml.responseText
> xml = nothing
>
> strArrayVal = split(strRetVal, ",", -1)
>
>
> %>
>
>
> I still dont know if I am using the right path to the OpenSRS system...
> ----- Original Message -----
> From: "Lynn W. Taylor" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, October 26, 2003 7:22 PM
> Subject: Re: SSL certs on Horizon - pricing error?
>
>
> > Switching to SOAP over SSL would break all existing installations.
> >
> > There are at least two components that make the task fairly easy.
> > Here's
> one: <http://sourceforge.net/projects/closedsrs/>
> >
> > Me? I'm happy with the Perl client, running on Windows....
> >
> > -- Lynn
> >
> > On Sun, 26 Oct 2003 21:11:42 -0600, Adam Selene wrote:
> > > SOAP over SSL would be the simplest and most standard,
> > > I can't believe how long this request has been left unanswered.
> > > TuCows, fire your Perl programmers and hire someone with clue.
> > >
> > > Hayk, if you take a hack at it in C#, post your source code here,
> > > I'm sure there'll be some people willing to help you out.
> > >
> > > Adam
> >
> >
> >
>
>
> This mail was content checked for malicious code and viruses by
> GFI MailSecurity. GFI MailSecurity provides email content checking,
> exploit detection and anti-virus for Exchange & SMTP servers. Email
> [EMAIL PROTECTED] for more information.
>
>