hi,
Im working for a company that has a intranet site, it wants create a new portal front end on an extranet...this is part of the prob.
I need to use data from the intranet site.
Basically. I have a html form (search.html) which is a replica on the one on the intranet site.
<form action="gettickets.php" method="post" name="SearchTicket" id="SearchTicket">
there are two id that i enter in the form. id="date" & id="location"
on submit of the form i want to call "gettickets.php" and pass these two strings from the form to it.
What i want the gettickets.php file to do with Curl is connect to the intranet site search page, enter the values from search.html and then scrape the results back.
Problems is the intranet site has session id's and the result page differs from the search page.
i.e
intranet search site is....http://intranet/search
results is http://intranet/tt
so i need to pass the form data from my search.html to gettickets.php and gettickets.php enters the data to http://intranet/search (gets the session id from headers) and then scrapes the result from http://intranet/search
can this be done.???
Please help , i'm scratching my eyes out.
Many thanks in advance.
Dave
intranet site curl
Moderator: General Moderators
Re: intranet site curl
i've heard they use "cookie jars" for this kind of stuff.