hi i have been trying to get this working out i got a login url with two urls actually one to log you in and a java script button.

lets say this is the URL's

http://login.mywebsite/login.nhn?m=login&memberid= (HERE Account)

middle part of url : &password= (password)

The last part i would like put put one more hmtl with it lets call it : &nextURL=http://LOL.mywebsite.com/common/prelaunch.nhn?gameId=crazyness="

what i would like to do is have the public enter account names in one textbox
and password in the next.

For the site im wanting to login with has the account/password in the hmtl itself. i would like to know how i can make ONE button log me in and then go the the next URL

something like http://login.mywebsite.com/login.nhn?m=login&memberid=%user%&password=%pass%&nextURL=http://LOL.MYwebsite.com/common/prelaunch.nhn?gameId=crazyness= where the %username% and %pass% is where the information goes in the URL. (this is not the real URL fyi)

Please help me i would gladey appreciate

8 Years
Discussion Span
Last Post by jbennet

How far have you got, do you have the 2 boxes and a button yet? Why would you use javascript as the whole next page and password part would be open for someone to either just bypass it or decrypt it and use your page


i was searching of how i could possibly do this i found this that ki nda gave me an idea:

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;

using System.Web;

namespace aebot
	public partial class Form1 : Form
		public Form1()

		private void btnGo_Click(object sender, EventArgs e)
			string url = "http://website/a.aspx";
			if (tbRegio.Text.Length > 0)
				url += tbRegio.Text;
			lblUrl.Text = url;
			//url = "http://login.ijji.com/login.nhn?m=login&memberid=";
			rtbHtml.Text = getHtml(url,"email@example.com","secret");


		private string getHtml(string url,string username,string password)
			HttpWebRequest request;
			HttpWebResponse response;
			CookieContainer cookies = new CookieContainer();
			WebClient client = new WebClient();
			HttpUtility hu = new HttpUtility();
			string parameters = string.Format("email={0}&pass={1}",
			return HttpPost("http://website/login.aspx?href=%22/a.aspx"
			/*client.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0;Windows NT 5.2; .NET CLR 1.0.3705;)");
			request = (HttpWebRequest)WebRequest.Create(url);
			request.AllowAutoRedirect = false;
			request.CookieContainer = cookies;
			response = (HttpWebResponse)request.GetResponse();
			string s = "niks gevonden";
			using (Stream data = response.GetResponseStream())
				StreamReader sr = new StreamReader(data);
				s = sr.ReadToEnd();
			return s;
			 * */

		private string HttpPost(string URI, string Parameters)
			System.Net.WebRequest req = System.Net.WebRequest.Create(URI);
			//req.Proxy = new System.Net.WebProxy(ProxyString, true);

			req.ContentType = "application/x-www-form-urlencoded";
			req.Method = "POST";

			byte[] bytes = System.Text.Encoding.ASCII.GetBytes(Parameters);
			req.ContentLength = bytes.Length;

			System.IO.Stream os = req.GetRequestStream();
			os.Write(bytes, 0, bytes.Length);

			System.Net.WebResponse resp = req.GetResponse();
			if (resp == null) return null;

			System.IO.StreamReader sr = new System.IO.StreamReader(resp.GetResponseStream());
			return sr.ReadToEnd().Trim();

the point of java script is that it launches an application from my computer files.


OK, but thats entirely different from what you initially asked. If you wanted to use javascript you'd need to be running a web form, implying aspx, and that you said you wanted to make a login form, so it seems very much like you wanted a web form..

Now you have shown a windows app..

Please define your problem more clearly.


okay so id be starting wtih web developer? i have a url that loads the java script button and i wanted to add with it its all http urls that i want to compile into a login and then loads the other http for the javascript.


You need to define what you want, for your own sanity and that of anyone whos going to try and help you.

What you wrote is not a definition, its a waffle, with fluff..

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.