Jump to content

Get header winhttp


Recommended Posts

loginface("########","######")

Func loginface($usename = "########",$password = "########")
$password = _UnicodeURLEncode($password)
'charset_test=€,´,€,´,水,Д,Є&lsd=f_YAc&locale=en_US&email='&$usename&'&pass='&$password&'&default_persistent=0&charset_test=€,´,€,´,水,Д,Є&lsd=f_YAc&timezone=300'
$OHttp = _winhttpopen("Mozilla/5.0 (Windows NT 5.1; rv:8.0.1) Gecko/20100101 Firefox/8.0.1")
$CHttp = _WinHttpConnect($OHttp,"www.facebook.com")
$HHttp = _winhttpopenrequest($CHttp,"POST","login.php?login_attempt=1","HTTP/1.1","https://www.facebook.com/login.php","text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8")
_WinHttpAddRequestHeaders($HHttp,"Cookie: datr=AZH-TrphQyK2wTIzuud8eU0c")
;if don't add cookie then facebook will send error
_WinHttpSendRequest($HHttp,"Content-Type: application/x-www-form-urlencoded",$data)
_WinHttpReceiveResponse($HHttp)
Local $sHeader
$sHeader = _WinHttpQueryHeaders($HHttp) ;<======== this problem
MsgBox(0,0,$sHeader )
_winhttpclosehandle($HHttp)
_winhttpclosehandle($CHttp)
endfunc

i couldn't get response header from facebook with my account

Please help me

Edited by Melba23
Removed clear text email address and password
Link to comment
Share on other sites

  • Moderators

thanlankon,

You posted this question in the Examples section where there is a big banner at the top: "This is not a general support forum!". Please post in the correct place in future. :)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

  • Moderators

thanlankon,

On closer examination it looks as if you are trying to automate a login to a well-known social media site - our Forum Rules forbid that kind of activity here.

And I become even more uncomfortable when I see you are not even using using your own email address to make the attempt.

Do not try a third post on this subject.:)

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...