How to build https with devspoon's proxy service
This page is reserved preview posting. It'll be fill by bluebamus author later.
Let's start the PHP server
Typographically
1
2
3
4
5
6
7
8
9
10
11
12
13
// javascript code sample
$.ajax({
type: 'POST',
url: 'backend.php',
data: "q="+myform.serialize(),
success: function(data){
// on success use return data here
},
error: function(xhr, type, exception) {
// if ajax fails display error alert
alert("ajax error response type "+type);
}
});
Let's start the gunicorn server with django
Typographically
1
2
3
4
5
6
7
8
9
10
11
12
13
// javascript code sample
$.ajax({
type: 'POST',
url: 'backend.php',
data: "q="+myform.serialize(),
success: function(data){
// on success use return data here
},
error: function(xhr, type, exception) {
// if ajax fails display error alert
alert("ajax error response type "+type);
}
});
Let's start the uwsgi server with django
Typographically
1
2
3
4
5
6
7
8
9
10
11
12
13
// javascript code sample
$.ajax({
type: 'POST',
url: 'backend.php',
data: "q="+myform.serialize(),
success: function(data){
// on success use return data here
},
error: function(xhr, type, exception) {
// if ajax fails display error alert
alert("ajax error response type "+type);
}
});