Yahoo Clever wird am 4. Mai 2021 (Eastern Time, Zeitzone US-Ostküste) eingestellt. Ab dem 20. April 2021 (Eastern Time) ist die Website von Yahoo Clever nur noch im reinen Lesemodus verfügbar. Andere Yahoo Produkte oder Dienste oder Ihr Yahoo Account sind von diesen Änderungen nicht betroffen. Auf dieser Hilfeseite finden Sie weitere Informationen zur Einstellung von Yahoo Clever und dazu, wie Sie Ihre Daten herunterladen.

Java and HTTP and POST Login How to send package?

I want to write a java Program which can connect to a http website. I traced connection with wireshark. After tree way handshake looks like

Line-based text data: application/x-www-form-urlencoded

POST / HTTP 1.1

and than the URL which contains Password and User name.

How can I send similar package with java?

1 Antwort

Relevanz
  • vor 1 Jahrzehnt
    Beste Antwort

    Apache makes a HttpClient library that is really good for this kind of stuff.

    http://hc.apache.org/httpclient-3.x/

    It has methods for doing posts, gets and all kinds of other fun stuff :) And it all happens at a higher level than what it looks like you are trying to do.

    Also, when you are trying to do this stuff Firefox with Firebug can be a huge help.

Haben Sie noch Fragen? Jetzt beantworten lassen.