If you are trying to redirect, use nlapiSetRedirec...
# suitescript
l
If you are trying to redirect, use nlapiSetRedirectURL. If you are trying to process something in the back-end, use nlapiRequestURL.