Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-SMF
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
OpenXG
OpenXG-SMF
Commits
4007c229
Commit
4007c229
authored
Jun 03, 2021
by
Tien-Thinh Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix issue for N1N2 message transfer with curl multi
parent
c4899fec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
src/smf_app/smf_sbi.cpp
src/smf_app/smf_sbi.cpp
+6
-1
No files found.
src/smf_app/smf_sbi.cpp
View file @
4007c229
...
@@ -1173,6 +1173,11 @@ CURL* smf_sbi::curl_create_handle(
...
@@ -1173,6 +1173,11 @@ CURL* smf_sbi::curl_create_handle(
// create handle for a curl request
// create handle for a curl request
CURL
*
curl
=
curl_easy_init
();
CURL
*
curl
=
curl_easy_init
();
uint32_t
str_len
=
data
.
length
();
char
data_str
[
str_len
+
1
]
=
{};
data
.
copy
(
data_str
,
str_len
);
data_str
[
str_len
]
=
'\0'
;
if
(
curl
)
{
if
(
curl
)
{
curl_easy_setopt
(
curl
,
CURLOPT_HTTPHEADER
,
headers
);
curl_easy_setopt
(
curl
,
CURLOPT_HTTPHEADER
,
headers
);
curl_easy_setopt
(
curl
,
CURLOPT_URL
,
uri
.
c_str
());
curl_easy_setopt
(
curl
,
CURLOPT_URL
,
uri
.
c_str
());
...
@@ -1185,7 +1190,7 @@ CURL* smf_sbi::curl_create_handle(
...
@@ -1185,7 +1190,7 @@ CURL* smf_sbi::curl_create_handle(
curl_easy_setopt
(
curl
,
CURLOPT_WRITEDATA
,
&
response_data
);
curl_easy_setopt
(
curl
,
CURLOPT_WRITEDATA
,
&
response_data
);
curl_easy_setopt
(
curl
,
CURLOPT_FOLLOWLOCATION
,
1L
);
curl_easy_setopt
(
curl
,
CURLOPT_FOLLOWLOCATION
,
1L
);
curl_easy_setopt
(
curl
,
CURLOPT_POSTFIELDSIZE
,
data
.
length
());
curl_easy_setopt
(
curl
,
CURLOPT_POSTFIELDSIZE
,
data
.
length
());
curl_easy_setopt
(
curl
,
CURLOPT_POSTFIELDS
,
data
.
c_str
()
);
curl_easy_setopt
(
curl
,
CURLOPT_POSTFIELDS
,
data
_str
);
}
}
return
curl
;
return
curl
;
}
}
...
...
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