Page 1 of 1
Using ps2http
Posted: Thu Jul 22, 2004 1:50 pm
by Warren
Ok, this sounds really stupid but I've been trying longer that I think I should have to and I can't for the life of me get ps2http to suck down a simple text file off a website. I've tried opening an IP and a hostname in case it was a dns bug.
Can someone please attach some COMPLETE working example code on how to use it? Oobles?
Posted: Thu Jul 22, 2004 11:36 pm
by Oobles
I'm haven't got any example sources around.. and I haven't had much time for ps2dev recently, as you've probably noticed from the lack of news updates.
But some quick advice.. The first thing you should have is Ethereal. This will help let you find out if you are getting a HTTP request to where you think.. etc.
I would also suggest that you start with only IP addresses. That way you arn't getting ps2dns involved.
If you are connecting to a web server using HTTP 1.1 make sure that you are setting the host correctly in the headers. This is required for servers which have multiple web domains on a single IP address.
Be careful of servers responding with chunked encoding.. or other strange encodings. Set the HTTP request back to 1.0 if it does.
Hope that helps.
Oobles.
Posted: Fri Jul 23, 2004 3:07 am
by Warren
I will give that a shot, the errors I seemed to be getting suggested that iomanX wasn't picking up te driver or something. I'm not the only one having trouble with this but I'll slave a bit more on it tonight and see what happens.
Posted: Fri Jul 23, 2004 8:22 am
by Drakonite
If you aren't already, try resetting the IOP so ps2link isn't running anymore.
PS2IP seems to have problems with running something like ps2http and ps2link at the same time.
Posted: Fri Jul 23, 2004 9:14 am
by blackdroid
ps2ip fresh from cvs should not have any problems.