#### Archived

This topic is now archived and is closed to further replies.

# HTTP "The parameter is incorrect"

This topic is 5220 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

I have a program written in Java that is designed to connect to usatoday and download all of the archived NCAA football scores. I''m using a generic NetConnection class I wrote a few years ago when I was playing with sockets, so I connect to the index page, parse it for links and store them in a queue, then for each in the queue I remove it, open that page, parse it for links and queue them up, then remove each one of those and download the appropriate page. For the first scoreset it works fine, but for the second one (I haven''t let it run past the second because I figure later ones will get similar errors) all I get instead of a score page is an error page that says "The parameter is incorrect." That''s not usatoday''s 404 page, obviously, and when I check the page giving the error in Internet explorer it works fine. Any suggestions for what might be causing it?
net.send("GET " + rpath + " HTTP/1.1");
net.send("Host:  www.usatoday.com");
net.send("Accept: */*");
net.send("Connection: close");
net.send("");


##### Share on other sites
Nevermind... I did indeed find the error by looking at the HTTP header. Turns out some of my URLs were just coming in as relative paths and others were coming in as absolute, but I was only expecting absolute so when I tried to trim the "http://www.usatoday.com" from a relative path it was clipping off most of the actual path to the data...and generating a HTTP 400.