Hi all,
I write a experimental example to reach this requirement. By AJAX
method, we can make a post type form after server answer.
my example is below here:
http://hoamon.blogspot.com/2009/03/return-httpresponseredirect-by-post.html
--~--~-~--~~~---~--~~
You re
On Fri, 2009-02-20 at 19:39 -0800, Devin wrote:
> I have no problem pulling pages using httplib if the pages do not
> require authentication. But now I want to pull pages only after
> authenticating. Access is enforced by the contributed auth package.
>
> import httplib, urllib
> params = urlli
I have no problem pulling pages using httplib if the pages do not
require authentication. But now I want to pull pages only after
authenticating. Access is enforced by the contributed auth package.
import httplib, urllib
params = urllib.urlencode({'this_is_the_login_form':1,'username':
'myuser'
well, I am not a python programmer and maybe I am doing silly things or this
is not as complex as I see but I not able to do what you mention above.
I get the error,
'NoneType' object has no attribute 'read'
I have tried to follow http://code.activestate.com/recipes/146306/, with
only fields (th
2009/2/17 Miguel :
> thanks karen, that is what I meant.
> So there is no way to return in my views.py an external web html with post
> parameters ... it must be a way to do that, dont think so?
>
Yes, but you can't do it this way.
Just check for httplib and httplib2.
http://code.activestate.com
thanks karen, that is what I meant.
So there is no way to return in my views.py an external web html with post
parameters ... it must be a way to do that, dont think so?
Karen, if I try your example
return HttpResponseRedirect("?".join(("
https://sis.sermepa.es/sis/realizarPago",params))), the web
On Tue, Feb 17, 2009 at 3:04 AM, Miguel wrote:
> [snip]
> params = urllib.urlencode({"Ds_Merchant_Titular":
> Ds_Merchant_Titular, "Ds_Merchant_MerchantCode": Ds_Merchant_MerchantCode})
> #f= urllib2.urlopen("https://sis.sermepa.es/sis/realizarPago
> ",params)
>
>return f ->
The problem is that I need to redirect the request to an url and post to
this url the parameters I got from the initial request and display the post
url. Here is my views.py:
def prueba(request, seccion):
if request.POST:
new_data = request.POST.copy()
Ds_Merchant_Titular = n
2009/2/16 Mike :
>
> Hi all,
>
> I m not familiar with django and I have found several problems trying
> to sent a httpresponse with post parameters. I would like to return an
> httpresponse (or httpredirect) to a new url with the request
> parameters via post.
>
> Could anybody help me?
> Thank y
Hi all,
I m not familiar with django and I have found several problems trying
to sent a httpresponse with post parameters. I would like to return an
httpresponse (or httpredirect) to a new url with the request
parameters via post.
Could anybody help me?
Thank you in advance,
Miguel
I have defin
10 matches
Mail list logo