| View previous topic :: View next topic |
| Author |
Message |
Warren
Joined: 24 Jan 2004 Posts: 173 Location: San Diego, CA
|
Posted: Thu Jul 22, 2004 1:50 pm Post subject: Using ps2http |
|
|
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? |
|
| Back to top |
|
 |
Oobles Site Admin
Joined: 17 Jan 2004 Posts: 362 Location: Melbourne, Australia
|
Posted: Thu Jul 22, 2004 11:36 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Warren
Joined: 24 Jan 2004 Posts: 173 Location: San Diego, CA
|
Posted: Fri Jul 23, 2004 3:07 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
Drakonite Site Admin

Joined: 17 Jan 2004 Posts: 989
|
Posted: Fri Jul 23, 2004 8:22 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
blackdroid
Joined: 17 Jan 2004 Posts: 564 Location: Sweden
|
Posted: Fri Jul 23, 2004 9:14 am Post subject: |
|
|
ps2ip fresh from cvs should not have any problems. _________________ Kung VU |
|
| Back to top |
|
 |
|