Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6165981
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:15:40+00:00 2026-05-23T22:15:40+00:00

String parameters = __VIEWSTATE= + __EVENTTARGET= + __EVENTARGUMENT= + &ctl00$tbUsername= + URLEncoder.encode(name, UTF-8) +

  • 0
String parameters = "__VIEWSTATE=" + "__EVENTTARGET="
                + "__EVENTARGUMENT=" + "&ctl00$tbUsername="
                + URLEncoder.encode("name", "UTF-8") + "&ctl00$tbPwd="
                + URLEncoder.encode("pssw", "UTF-8")
                + "&ctl00$chkRememberLogin=" + URLEncoder.encode("0", "UTF-8")
                + "&ctl00$cmdLogin=" + URLEncoder.encode("Login", "UTF-8");
    URL url;
    HttpURLConnection connection = null;
    try {
        url = new URL("www.website.com/Login.aspx");
        connection = (HttpURLConnection) url.openConnection();
        connection.setRequestMethod("POST");
        connection.setRequestProperty("Content-Type",
                "text/html; charset=utf-8");
        connection.setRequestProperty("Content-Length",
                "" + Integer.toString(parameters.getBytes().length));
//trying everything..
        connection.setDefaultUseCaches(true);
        connection.setUseCaches(true);

        connection.setUseCaches(true);
        connection.setDoInput(true);
        connection.setDoOutput(true);
        connection.setAllowUserInteraction(true);
        connection.setInstanceFollowRedirects(true);
        HttpURLConnection.setFollowRedirects(true);

        DataOutputStream wr = new DataOutputStream(
                connection.getOutputStream());
        wr.writeBytes(parameters);
        wr.flush();
        wr.close();
    } catch (Exception e) {
        e.printStackTrace();
    } finally {
        if (connection != null) {
            connection.disconnect();
        }

    }
}

and here is a HTML form

<form id="LoginForm" name="LoginForm" method="post" action="Login.aspx?__ufps=747201&loggedout">
<input type="hidden" name="__VIEWSTATE" value="/wEXAQUDX19QD2QPBirKUk9SFs6IZg==">
<input type="hidden" name="__EVENTTARGET" value="">
<input type="hidden" name="__EVENTARGUMENT" value="">
<script language=javascript><!--
function __doPostBack(target, argument){
  var theform = document.LoginForm
  theform.__EVENTTARGET.value = target
  theform.__EVENTARGUMENT.value = argument
  theform.submit()
}
// -->
</script>

<div nowrap><b>Username:</b></div><input name="ctl00$tbUsername" /><br>
<b>Password:</b><br>
<input name="ctl00$tbPwd" type="password"/><br>
<input type="checkbox" name="ctl00$chkRememberLogin" value="0" checked>Remember Me<br>
<input name="ctl00$cmdLogin" type="submit" value="Login"/>&nbsp;
                        <input name="ctl00$cmdForgetMe" type="submit" value="Forget Me"/>
</form>

The reply message is: “Object moved to here”. #%^#%^?! Can somebody explain what could possibly be wrong… WireShark showing the same post requests from both client and browser

P.S. People who knows, please help..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T22:15:42+00:00Added an answer on May 23, 2026 at 10:15 pm

    From what I understand you try to send via post the name and password and you get a redirect message ! from the web page that say to you to read a different location.

    This is because of

    1. You try an unsecured page and server redirect you to a secure SSL.
    2. After your post, the server proceed the data and response with a redirect to a new page.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to split a command line like string in single string parameters. How
How can I parse the query string (GET / POST parameters) sent to an
I am trying to do some string concatenation/formatting, but it's putting all the parameters
It appears the query string parameters you can pass to a rest method in
Problem Given the following XML configuration file: <main> <name>JET</name> <maxInstances>5</maxInstances> <parameters> <a>1</a> <b> <b1>test1</b1>
I have a showall query string parameter in the url, the parameter is being
How do I delimit a Javascript data-bound string parameter in an anchor OnClick event?
You get a compilation error if you define the string parameter to have a
I have the following code: public static T ParameterFetchValue<T>(string parameterKey) { Parameter result =
String s = ; for(i=0;i<....){ s = some Assignment; } or for(i=0;i<..){ String s

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.