Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 4 of 4

Thread: how to convert this my PHP code 'send post request' to java

  1. #1
    Junior Member
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default how to convert this my PHP code 'send post request' to java

    I write PHP code to parse page
    the php code it is worked 100% put the problem in the java code
    But i fail to convert this code to java please help me

    that php code send administration request
    Last edited by mr.msds; March 9th, 2013 at 05:05 AM. Reason: i solved the problem


  2. #2
    Super Moderator Norm's Avatar
    Join Date
    May 2010
    Location
    Eastern Florida
    Posts
    25,140
    Thanks
    65
    Thanked 2,720 Times in 2,670 Posts

    Default Re: how to convert this my PHP code 'send post request' to java

    Can you explain what the code does and what is wrong with it?
    Post the program's output and add some comments describing the problem.
    If you don't understand my answer, don't ignore it, ask a question.

  3. The Following User Says Thank You to Norm For This Useful Post:

    mr.msds (March 9th, 2013)

  4. #3
    Member
    Join Date
    Sep 2012
    Posts
    128
    Thanks
    1
    Thanked 14 Times in 14 Posts

    Default Re: how to convert this my PHP code 'send post request' to java

    I'll wait for the comments before trying this. However I did notice an error: HttpPost postMethod = new HttpPost("http://www.online.uob.edu.bh/cgi/regweb/schedule_page_prin");
    Should be print.

  5. The Following User Says Thank You to Starstreak For This Useful Post:

    mr.msds (March 9th, 2013)

  6. #4
    Junior Member
    Join Date
    Mar 2013
    Posts
    2
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default Re: how to convert this my PHP code 'send post request' to java

    thanks my friend for Positive response I solved the problem I will discuss the code
    it is all about send administration request with pass & user name to header of page to open the page

    the problem it is that page give us Phantom link so we can not do to the link direct for that we have to go to the page that before requested page (Phantom link) on that page ( page before requested page ) we have to select from combobox that have name yersmscmb then send the post to open requested page

Similar Threads

  1. proxy ip send post request
    By rojersjoo in forum Java Networking
    Replies: 1
    Last Post: February 17th, 2012, 12:10 AM
  2. J2ME + Nokia S40 + HTTP Multiform POST to PHP website = 403 Forbidden
    By vozmen in forum Java ME (Mobile Edition)
    Replies: 2
    Last Post: January 12th, 2012, 04:30 AM
  3. send image file from java to php broken pipe exception occured
    By ashi123 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: July 21st, 2011, 02:53 PM
  4. Problem sending POST request with Java..
    By lost in forum What's Wrong With My Code?
    Replies: 3
    Last Post: October 20th, 2010, 09:16 PM

Tags for this Thread