Results 1 to 3 of 3
  1. #1
    mehdi_s2 is offline Member
    Join Date
    Apr 2012
    Rep Power

    Default java POST 400 Bad Request .

    I am trying to write an application in java lang to login to a website. The form is :

    <form action="Desktop/Login.aspx?t=62318179" method="post">

    <input type="text" name="uid" size="19" class="Textbox" dir="ltr" maxLength="41" >

    <input type="password" name="password" size="19" class="Textbox" dir="ltr" maxLength="20">


    when I tryed to send uid and password I received "HTTP Error 400. The request has an invalid header name." error. I think that s because the question mark in the action="Desktop/Login.aspx?t=62318179" but I dont know how to solve this problem. Plz show me a solution and also an example code if possible .


  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Eastern Florida
    Rep Power

    Default Re: java POST 400 Bad Request .

    Can you explain what your java programming question is?

    What you posted looks like HTML.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Colombo, Sri Lanka
    Blog Entries
    Rep Power

Similar Threads

  1. How to send a post request to website via java
    By mehdi_s2 in forum Networking
    Replies: 4
    Last Post: 05-15-2012, 03:19 PM
  2. Authenticating for a java POST request
    By stodds in forum Advanced Java
    Replies: 1
    Last Post: 12-08-2010, 01:11 AM
  3. HTTP Post Request from Java
    By Darrarski in forum New To Java
    Replies: 10
    Last Post: 06-05-2010, 06:22 PM
  4. First post as per request
    By happyknappy in forum Introductions
    Replies: 3
    Last Post: 07-30-2008, 02:33 AM
  5. Replies: 1
    Last Post: 07-14-2007, 06:15 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts