Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Browser like behavior
March 15, 2005, 9:22 pm
rate this thread
What is the easiest way to use jakarta HttpClient 3.0 , to behave like
browser executing methods with sequential URLs?
I'm executing method with `http://google.com `
Then I'm executing method with `/catalog1/` (My aim is to execute with
Then I'm executing method with `index2.html` (My aim is to execute with
Then I'm executing method with `/catalog2` (My aim is to execute with
What I want is to simulate browser behavior dealing with URLs in links,
forms and so on.
Anyone has experience in that field?
Re: Browser like behavior
Yes, but what has this to do with PHP?
You have to disect the URL (like with
http://nl2.php.net/manual/en/function.parse-url.php ), remember last URL
and check if the path starts with a / of not. If it does append it to
the host part, else append to current.