This wrapper was made by Mystical (who is currently inactive). Add a new class in your VB.NET program. Call it tcpwrapper.vb and paste this code (in the attached txt file) into it. Examples of the usage of the request function in your program would be: Code (vb.net): <div class="vbnet" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> <span style="color: #0600FF;">Dim</span> HTML <span style="color: #FF8000;">as</span> <span style="color: #FF8000;">String</span> = Wrapper.<span style="color: #0000FF;">Request</span><span style="color: #000000;">(</span><span style="color: #808080;">"GET"</span>, site, referrer<span style="color: #000000;">)</span> </li></ol></div> or Code (vb.net): <div class="vbnet" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> <span style="color: #0600FF;">Dim</span> HTML <span style="color: #FF8000;">as</span> <span style="color: #FF8000;">String</span> = Wrapper.<span style="color: #0000FF;">Request</span><span style="color: #000000;">(</span><span style="color: #808080;">"POST"</span>, site <span style="color: #0600FF;">with</span> postdata, referrer<span style="color: #000000;">)</span> </li></ol></div> an example of putting a site with post data would be http://www.neofriends.net/ucp.php?mode=login&username= etc Other functions are: ClearCookies() Pause(seconds) NeoLogin(username, password, loginboolean)
In order to use this, do you have to include all of the items on the form? e.g cmdLogin, txtUsername etc If so, I've done that but am still getting on error because I'm not sure what to include on the form. 'Login' is not a member of 'WindowsApplication1.frmMain'. What component is 'Login'?
If you wanted to use the login function do something like: Code (Text): <div class="text" id="{CB}" style="font-family: monospace;"><ol><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> </li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">'In the declarations</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Dim wrapper as TCPWrapper = New TCPWrapper</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> </li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">Private Sub cmdLogin()</li><li style="padding: 0 5px; background-color: #f9f9f9; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;">strHTML = Wrapper.NeoLogin(txtUsername.text, txtPassword.text)</li><li style="padding: 0 5px; background-color: #fff; line-height: 16px; border-bottom: 1px solid #efefef; border-left: 1px solid #999;"> </li></ol></div> I'm entirely sure if thats what you want lol.
I'm still using it. I just can't remember if I made some modifications to it. See there code-snippets-tutorials-f15/nf-authorization-t21013.html The wrapper is include and working.