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?
Using ps2http
-
- Site Admin
- Posts: 347
- Joined: Sat Jan 17, 2004 9:49 am
- Location: Melbourne, Australia
- Contact:
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.
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.
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.
PS2IP seems to have problems with running something like ps2http and ps2link at the same time.
Shoot Pixels Not People!
Makeshift Development
Makeshift Development
-
- Posts: 564
- Joined: Sat Jan 17, 2004 10:22 am
- Location: Sweden
- Contact: