Encerrado

PHP & curl ... transfer cookie to client side

Este projeto recebeu 9 ofertas de freelancers talentosos com uma oferta média de preço de $53 USD.

Obtenha orçamentos gratuitos para um projeto como este
Orçamento
N/A
Total de Ofertas
9
Descrição do Projeto

As a part of a bigger module i need the following script:

Here is what is given ...

we have the following [url removed, login to view] code that is triggered in that way:

img --> .htaccess --> [url removed, login to view]

$referer = "[url removed, login to view]";

$url = "[url removed, login to view]";

$ch = curl_init();

curl_setopt ($ch, CURLOPT_REFERER, $referer);

curl_setopt ($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

$result = curl_exec ($ch);

curl_close ($ch);

now the part that stores a cookie is missing ... but what i need is the following ... with the above code the cookie of the targetpage is stored at the server. But i want it stored not only there but also on the clients webbroswers cookiefolder. Just like if the client would visit the page in a normal way directly with his browser.

Afim de ganhar algum dinheiro?

  • Defina seu orçamento e o prazo de entrega
  • Sublinhe sua proposta
  • Receba pelo seu trabalho

Contratar freelancers que também ofereça neste projeto

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online