PC SOFT

FOROS PROFESIONALES
WINDEVWEBDEV y WINDEV Mobile

Inicio → WINDEV 2024 → Recieve cookies from website call
Recieve cookies from website call
Iniciado por guest, 26,feb. 2015 15:41 - 4 respuestas
Publicado el 26,febrero 2015 - 15:41
Hello,

Is it possible to open a website in Windev 18 and recieve the cookies from the site?
It is an order website and i need this cookies to get the products in the cart with an API call.
Publicado el 26,febrero 2015 - 15:46
Hi Sammy

yes it is and there is an example available 'somewhere' (in webdev, in the help, in a lst, on the pcsoft site?)

Best regards
Publicado el 26,febrero 2015 - 19:03
I asked this quiestion before but can´ stil find the right answer. I tried a lot of things!

The thing i need is when i visit the website in a html controle that i receive the cookies, then i can create a API call with that cookies to receive the content of the cart.

I tried HTTPCookieGet, HTTPCookieRead enz..
Publicado el 27,febrero 2015 - 15:13
Or is there mayby a possibility to receive the cookie in Windev from a site wich is open in Internet Explorer? That should also help me.

Thanks, Sammy
Publicado el 04,marzo 2015 - 19:18
I also tried to add cookies on a http request (opening a website) with the code below, but this is also not working.


HTTPCookieWrite("<a class="ExternalLink" rel="nofollow" target="_blank" href="https://b2b.ghs-automotive.nl","Cookie:",Cookietot+CR">https://b2b.ghs-automotive.nl","Cookie:",Cookietot+CR</a>)

HTTPRequest(NieuweUrl,"","","","","","")
HTM_HTML1 = NieuweUrl