Jump to content
Che

Pyhton/PyCurl: Cum accesez un url cu anumiti paramtri in functie de cookie ?

Recommended Posts

Salut !

 

In php exista constanta CURLINFO_COOKIELIST (aici) in pyCurl exista ceva asemanator insa, se pare ca, nu ma pricep cum se foloseste ca de fiecare data imi da eroare.

Vreau sa fac un browser custom folosind PyCurl in Python.

Ii dau un url lui pycurl si trebuie sa detecteze daca acel site seteaza un cookie de genul nume_cookie: XDFG value:442dsgfsgdgsg.

Daca acel site seteaza acest cookie cu acel nume (value se schimba, doar numele de la cookie ramane la fel), atunci browserul creat din pycurl sa foloseasca metoda GET, altfel sa foloseasca metoda POST pentru a accesa acel site.

 

Ma ajuta cineva cu o bucata de cod care face acest lucru, va rog ?

 

Multumesc mult !

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...