Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sbkclient
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李定达
sbkclient
Commits
8df13c56
Commit
8df13c56
authored
Aug 01, 2017
by
李定达
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.修改kong的http请求头字段
parent
9a7d6c03
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ZH_Client.suo
+0
-0
ZH_Client/sbk_client.cpp
+4
-2
No files found.
ZH_Client.suo
View file @
8df13c56
No preview for this file type
ZH_Client/sbk_client.cpp
View file @
8df13c56
...
@@ -992,13 +992,15 @@ int SendMsg(const std::string &text, const string &url, int iscret)
...
@@ -992,13 +992,15 @@ int SendMsg(const std::string &text, const string &url, int iscret)
}
}
headers
=
curl_slist_append
(
headers
,
"Content-Type:application/json;charset=utf-8"
);
headers
=
curl_slist_append
(
headers
,
"Content-Type:application/json;charset=utf-8"
);
headers
=
curl_slist_append
(
headers
,
"Accept:application/json"
);
headers
=
curl_slist_append
(
headers
,
"Accept:application/json"
);
headers
=
curl_slist_append
(
headers
,
"Authorization:dXBzLWNsaWVudDo2VGk4TjBXNzRyb1A="
);
//headers = curl_slist_append(headers, "Authorization:dXBzLWNsaWVudDo2VGk4TjBXNzRyb1A=");
headers
=
curl_slist_append
(
headers
,
"Authorization: Basic dXBzLWNsaWVudDo2VGk4TjBXNzRyb1A="
);
}
}
else
else
{
{
headers
=
curl_slist_append
(
headers
,
"Content-Type:text;charset=utf-8"
);
headers
=
curl_slist_append
(
headers
,
"Content-Type:text;charset=utf-8"
);
headers
=
curl_slist_append
(
headers
,
"Accept:text"
);
headers
=
curl_slist_append
(
headers
,
"Accept:text"
);
headers
=
curl_slist_append
(
headers
,
"Authorization:dXBzLWNsaWVudDo2VGk4TjBXNzRyb1A="
);
//headers = curl_slist_append(headers, "Authorization:dXBzLWNsaWVudDo2VGk4TjBXNzRyb1A=");
headers
=
curl_slist_append
(
headers
,
"Authorization: Basic dXBzLWNsaWVudDo2VGk4TjBXNzRyb1A="
);
}
}
curl_easy_setopt
(
curl
,
CURLOPT_URL
,
url
.
c_str
());
curl_easy_setopt
(
curl
,
CURLOPT_URL
,
url
.
c_str
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment