I'm creating a program and using 2 authentication systems (BetterSeal & My own) I can login succesfully on the program but i cant run gen.php with a webrequest (returns login.failed)
This works if i just goto the browser but not with the program (my syntax is correct)
Gen.PHP in web-browser:
![[Image: 8H31ucV.png]](https://i.imgur.com/8H31ucV.png)
Webreq for Gen.php in application:
![[Image: s8IJtrV.png]](https://i.imgur.com/s8IJtrV.png)
My code for webrequest in program:
Gen.php code (WARNING: Messy and unconventional method):
https://pastebin.com/HxUtbhfk
for getting the user:pass from form 2 i have tried several things, I tried passing the user:pass in seperate strings to form1 and also tried getting user:pass from form2 directly ect.
Any help is appreciated.
This works if i just goto the browser but not with the program (my syntax is correct)
Gen.PHP in web-browser:
![[Image: 8H31ucV.png]](https://i.imgur.com/8H31ucV.png)
Webreq for Gen.php in application:
![[Image: s8IJtrV.png]](https://i.imgur.com/s8IJtrV.png)
My code for webrequest in program:
Code
Public Function getAccountType()
Dim type
If typebx.Text = "Netflix" Then
type = "netflix"
Return type
End If
If typebx.Text = "Hulu" Then
type = "hulu"
Return type
End If
If typebx.Text = "Roblox" Then
type = "roblox"
Return type
End If
If typebx.Text = "HBONow" Then
type = "hbo"
Return type
End If
If typebx.Text = "Proxies" Then
type = "proxies"
Return type
End If
If typebx.Text = "Gmail" Then
type = "gmail"
Return type
End If
Return type
End Function
Private Sub genbt_Click(sender As Object, e As EventArgs) Handles genbt.Click
If num.Value = 1 Then
Dim result1 As String = VelocityClient.DownloadString("http://192.34.109.75/gen.php?username=" + Form2.user.Text + "&password=" + Form2.pass.Text + "&IP=" + ip + "&action=" + getAccountType())
RichTextBox1.Text = result1
End If
If num.Value = 2 Then
'nothing here yet
End If
If num.Value = 3 Then
'nothing here yet
End If
If num.Value = 4 Then
'nothing here yet
End If
If num.Value = 5 Then
'nothing here yet
End If
End SubGen.php code (WARNING: Messy and unconventional method):
https://pastebin.com/HxUtbhfk
for getting the user:pass from form 2 i have tried several things, I tried passing the user:pass in seperate strings to form1 and also tried getting user:pass from form2 directly ect.
Any help is appreciated.



![[Image: Syr3DlV.png]](https://i.imgur.com/Syr3DlV.png)