Jump to content
  • Advertisement


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


HTTP "The parameter is incorrect"

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

If you intended to correct an error in the post then please contact us.

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.readHTTPHeader();  //this just throws out the http header, could error information be in there?

Share this post

Link to post
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.

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!