Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Sending Http requests thru proxies in Java.....

  • 11-01-2003 08:52PM
    #1
    Registered Users, Registered Users 2 Posts: 68,173 ✭✭✭✭


    Right,
    My project for this semester involves writing a meta search engine, GUI style - not web server style. There's 3 of us doing it, and we have on piece each to do. Mine is the network section.

    Anywho, I'm thinking of adding proxy functionality to it, basically because I'll have to do testing from behind a proxy :)

    What's the format of Http Requests through the different forms of proxies?

    I know that it's similar to a standard Http request, except that you include the full URL, ie
    GET http://www.boards.ie/vbulletin/index.php HTTP/1.1
    But how does it work where Http authentication is required, or through a SOCKS proxy?

    And, uh, what does the usingProxy() method do? :)

    Thanks as usual.


Comments

  • Registered Users, Registered Users 2 Posts: 1,481 ✭✭✭satchmo


    Javaworld.com has this good tip which should be what you want.


  • Registered Users, Registered Users 2 Posts: 6,240 ✭✭✭hussey


    I did a chat room before that users could either use desktop GUI or a webpage(through an applet)

    for the GUI/applets, it sent http requests to the server
    a good page was HERE , it has source code for HTTP requests


Advertisement