Web Wiz - Solar Powered Eco Web Hosting

  New Posts New Posts RSS Feed - Issues with the HttpAPI.asp / Upgrading to v11
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Issues with the HttpAPI.asp / Upgrading to v11

 Post Reply Post Reply
Author
Romnus View Drop Down
Groupie
Groupie


Joined: 16 September 2009
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Romnus Quote  Post ReplyReply Direct Link To This Post Topic: Issues with the HttpAPI.asp / Upgrading to v11
    Posted: 02 October 2014 at 2:16pm
I've come to the realization that the /HttpAPI.asp?action= script is causing me issues when a users signs up to my site. Sometimes it works and does not prevent the user from going through the sign up process, but most of the times, it either takes to long to complete or some other unexplained issues arises that prevent the user from going through my website sign up process. The code is on the sign up page of my site.

The sign up process is as follows:

Signuppage (Httpapi) - >Signup profile input - >Sign up Image upload - >Confirmation

Most of the time the users only is able to complete the signuppage. Since removal of the httpapi all is good.


So, I have decided on removing it and currently have no problems. 

My question are: 

1. What other means can I create a user with out using the HTTPAPI? 

2. Is it safe to just do it via code? 

3. What steps should be taken to ensure this vb.net coding works correctly?

4. Lastly, do you think upgrading version 11 may help the issue?




VB.NET CODE

 Dim objrequest As HttpWebRequest 'request from the remote server.
        Dim objresponse As HttpWebResponse 'Recieve the stream of data send from the remote server.
        Dim streamhtml As StreamReader
        Dim strhtml As String

        Try

            objrequest = CType((Net.WebRequest.Create(strURL)), HttpWebRequest)
            objrequest.Method = "GET" 'This method of http is request/get the data from the remote server.
            objresponse = CType(objrequest.GetResponse(), HttpWebResponse)
            streamhtml = New StreamReader(objresponse.GetResponseStream) 'Data stream from the response
            strhtml = streamhtml.ReadToEnd 'Place the stream(string data) into a string variable to manipulate.



            streamhtml.Close()
            streamhtml.Dispose()
            objresponse.Close()


        Catch ex As Exception

            'Used to enter in the error into the sql table to analysis.
            Dim slex As String = ex.Message.ToString
            EnterintoSQLerrorTable(slex, strURL) ' 
        End Try
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9791
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2014 at 2:42pm
Do you get any errors in log files when you call the HttpAPI.asp file?
Back to Top
Romnus View Drop Down
Groupie
Groupie


Joined: 16 September 2009
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Romnus Quote  Post ReplyReply Direct Link To This Post Posted: 02 October 2014 at 2:49pm
No errors whatsoever? I've checked numerous times. Below is the string I use. And I call the sub via

CreateForummember(username, "123456789", "", email)

CreateForummember(username, password, member_images, email)

Is it necessary to have a string value for image? I have used it with and without with same error result.


        Dim strURL As String = "http://forums.xxxxxxx.com/HttpAPI.asp?action=CreateNewMember&Username=xxxxxx&Password=xxxxxxxxx&memberName=" + username.Replace("'", "") + "&memberPassword=" + password.Replace("'", "") + "&Active=&Suspended=&GroupID=&Email=" + email.Replace("'", "") + "&RealName=&Gender=&Homepage=&Avatar=" + Avatarimage.Replace("'", "") + "&Signature=&SignatureAttach=&ICQ=&DateFormat=&WYSIWYGeditor=&NoOfPosts=&memberTitle=&AdminNotes=&Newsletter="

Back to Top
Romnus View Drop Down
Groupie
Groupie


Joined: 16 September 2009
Status: Offline
Points: 64
Post Options Post Options   Thanks (0) Thanks(0)   Quote Romnus Quote  Post ReplyReply Direct Link To This Post Posted: 18 October 2014 at 6:05pm
Solved. 
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.07
Copyright ©2001-2024 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Policy

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2024 Web Wiz Ltd. All rights reserved.