Using ps2http

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Using ps2http

Post 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?
Oobles
Site Admin
Posts: 347
Joined: Sat Jan 17, 2004 9:49 am
Location: Melbourne, Australia
Contact:

Post 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.
Warren
Posts: 175
Joined: Sat Jan 24, 2004 8:26 am
Location: San Diego, CA

Post 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.
User avatar
Drakonite
Site Admin
Posts: 990
Joined: Sat Jan 17, 2004 1:30 am
Contact:

Post 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.
Shoot Pixels Not People!
Makeshift Development
blackdroid
Posts: 564
Joined: Sat Jan 17, 2004 10:22 am
Location: Sweden
Contact:

Post by blackdroid »

ps2ip fresh from cvs should not have any problems.
Kung VU
Post Reply