Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2021-193 User-friendly enhanced machine learning-based railway management system
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
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
2021-193
2021-193 User-friendly enhanced machine learning-based railway management system
Commits
866e854e
Commit
866e854e
authored
Oct 06, 2021
by
Mihiranga G.L.V - IT18500790
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'IT18085822' into 'master'
add API file to the Chatbot See merge request
!20
parents
3f8e4d07
e50709f0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
0 deletions
+28
-0
chat.php
chat.php
+28
-0
No files found.
chat.php
0 → 100644
View file @
866e854e
<?php
$msg
=
$_GET
[
'msg'
];
$str
=
str_replace
(
' '
,
'%'
,
$msg
);
$requestingURL
=
'http://127.0.0.1:5000/'
.
$str
;
$curl
=
curl_init
();
curl_setopt_array
(
$curl
,
array
(
CURLOPT_URL
=>
$requestingURL
,
CURLOPT_RETURNTRANSFER
=>
true
,
CURLOPT_ENCODING
=>
''
,
CURLOPT_MAXREDIRS
=>
10
,
CURLOPT_TIMEOUT
=>
0
,
CURLOPT_FOLLOWLOCATION
=>
true
,
CURLOPT_HTTP_VERSION
=>
CURL_HTTP_VERSION_1_1
,
CURLOPT_CUSTOMREQUEST
=>
'GET'
,
CURLOPT_HTTPHEADER
=>
array
(
'Content-Type: application/json'
),
));
$response
=
curl_exec
(
$curl
);
print_r
(
$response
);
?>
\ No newline at end of file
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