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

    Default java POST 400 Bad Request .

    Hi
    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">

    </form>

    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 .

    Thanks

  2. #2
    Norm's Avatar
    Norm is online now Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    17,562
    Rep Power
    25

    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
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

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, 02:19 PM
  2. Authenticating for a java POST request
    By stodds in forum Advanced Java
    Replies: 1
    Last Post: 12-08-2010, 12:11 AM
  3. HTTP Post Request from Java
    By Darrarski in forum New To Java
    Replies: 10
    Last Post: 06-05-2010, 05:22 PM
  4. First post as per request
    By happyknappy in forum Introductions
    Replies: 3
    Last Post: 07-30-2008, 01:33 AM
  5. Replies: 1
    Last Post: 07-14-2007, 05: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
  •