Skip to content

Instantly share code, notes, and snippets.

@nicekiwi
Forked from hypermix/gist:10df9f0a4c8e3122f9b6
Last active August 29, 2015 14:24
Show Gist options
  • Save nicekiwi/a8b7f8216b0bf959fcd5 to your computer and use it in GitHub Desktop.
Save nicekiwi/a8b7f8216b0bf959fcd5 to your computer and use it in GitHub Desktop.
/*
public function openPaymentPage(Request $request) {
$user_id = $request->json('user_id');
// how to redirect post another server with paramters?
// i cant find any solution with googling..
// is it possible?
return redirect()->to('http://myserver.com/testpost', compact('user_id'));
// i had try to above code..
// but return is "InvalidArgumentException in Response.php line 470: The HTTP status code "1" is not valid."
// pls somebody help me.
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment