« Return to Thread: I am gettitng 404 for existing sites!

I am gettitng 404 for existing sites!

by sami1 :: Rate this Message:

Reply to Author | View in Thread

HI There, I am not behind a firewal no proxies..etc doing this

         HttpClient client=new HttpClient();
        GetMethod get=new GetMethod();
        get.setPath(url);
        int code= client.executeMethod(get);
        System.out.println(code);

I have at least 2 urls that retrun 404 from HttpClient but work fine on the browser
http://www.stocktwits.net/ and http://www.blogattitudes.com. I tried changing the user-agent and differeent other things, still getting 404 through HttpClient

any help will be appreciated.
Thanks

 « Return to Thread: I am gettitng 404 for existing sites!