• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Logging into a forum

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I need to make a java project that uses a urlConnection so I picked logging into a forum. I need to send an http post request to a site and then test to see if I'm logged in. This is a snippet of the code. This piece should login by sending the post data to http://forum.tip.it/index.php?app=core&module=global§ion=login but when it reads the html of the next page, it just prints out the login page so either I'm doing something wrong or it needs to log/send the cookies that the site sends. Any input would be greatly appreciated. Thanks.

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The details will depend on what the site expects, but the proper approach at trouble-shooting this would be to compare what gets sent by the web page vs. what gets sent by your code. An HTTP proxy like tcpmon can be very helpful for that.
 
Something about .... going for a swim. With this tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic