Browser like behavior

This is a discussion on Browser like behavior within the PHP Language forums, part of the PHP Programming Forums category; Hi, What is the easiest way to use jakarta HttpClient 3.0 , to behave like browser executing methods with sequential ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-15-2005
Marcin
 
Posts: n/a
Default Browser like behavior

Hi,

What is the easiest way to use jakarta HttpClient 3.0 , to behave like
browser executing methods with sequential URLs?
For example:
I'm executing method with `http://google.com`
Then I'm executing method with `/catalog1/` (My aim is to execute with
`http://google.com/catalog1/`)
Then I'm executing method with `index2.html` (My aim is to execute with
`http://google.com/catalog1/index2.html`)
Then I'm executing method with `/catalog2` (My aim is to execute with
`http://google.com/catalog2/`)

What I want is to simulate browser behavior dealing with URLs in links,
forms and so on.

Anyone has experience in that field?

Thanks.
M.
Reply With Quote
  #2 (permalink)  
Old 03-15-2005
Marcin
 
Posts: n/a
Default Re: Browser like behavior

Sorry, I've done mistake. It's not correct group for that problem.
M.
Reply With Quote
  #3 (permalink)  
Old 03-15-2005
Daniel Tryba
 
Posts: n/a
Default Re: Browser like behavior

Marcin <gogosystems@gazeta.pl> wrote:
> What is the easiest way to use jakarta HttpClient 3.0 , to behave like
> browser executing methods with sequential URLs?
> For example:

[snip]
> What I want is to simulate browser behavior dealing with URLs in links,
> forms and so on.
>
> Anyone has experience in that field?


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.

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 07:22 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0