File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,9 @@ Opt("MustDeclareVars", 1)
7
7
; Initialize and get session handle
8
8
Global $hOpen = _WinHttpOpen()
9
9
; Get connection handle
10
- Global $hConnect = _WinHttpConnect($hOpen , " www.snee.com " )
10
+ Global $hConnect = _WinHttpConnect($hOpen , " httpbin.org " )
11
11
; Specify the reguest
12
- Global $hRequest = _WinHttpOpenRequest($hConnect , " POST" , " xml/crud/posttest.cgi?sgs " )
12
+ Global $hRequest = _WinHttpOpenRequest($hConnect , " POST" , " /post " )
13
13
14
14
Global $sPostData = " Additional data to send"
15
15
; Send request
@@ -23,9 +23,9 @@ _WinHttpReceiveResponse($hRequest)
23
23
24
24
; Check if there is data available...
25
25
If _WinHttpQueryDataAvailable($hRequest ) Then
26
- MsgBox (64 , " OK" , _WinHttpReadData($hRequest ))
26
+ MsgBox (64 , " OK" , _WinHttpReadData($hRequest ))
27
27
Else
28
- MsgBox (48 , " Error" , " Site is experiencing problems (or you)." )
28
+ MsgBox (48 , " Error" , " Site is experiencing problems (or you)." )
29
29
EndIf
30
30
31
31
; Close handles
You can’t perform that action at this time.
0 commit comments