On Wed, 2018-08-01 at 00:26 -0700,
im...@wsegames.com wrote:
> Here is my code
>
>
> class RegisterView(CreateView):
> form_class = RegisterForm
> template_name = 'accounts/register.html'
> success_url = '/success-membership/'
>
> def form_valid(self, form):
> url = "
http://enterprise.smsgupshup.com/GatewayAPI/rest"
> payload = "method=sendMessage&send_to=XXXXXXXXXX&msg=new&msg_type=TEXT&userid=XXXXX&auth_scheme=PLAIN&password=XXXXX&format=TEXT"
> response = requests.request("POST", url, data=payload)
> print(response.text)
> return HttpResponse(response)
Well, apart from everything, making a request with user and password in the clear