Tagged Questions
1
vote
1answer
46 views
POST request to Heroku results in Python IncompleteRead Error
My Python script, with lines:
from requests import post
...
while(1):
result = readSensors().result
payload["z"] = (result['zforce'])
payload["x"] = (result['xforce'])
payload["y"] = ...
0
votes
1answer
213 views
post request using python to asp.net page
i want scrap the PINCODEs from "http://www.indiapost.gov.in/pin/", i am doing with following code written.
import urllib
import urllib2
headers = {
...
2
votes
2answers
195 views
Issuing application-only requests in Twitter 1.1 using Python
I want to access Twitter 1.1 search endpoint using application-only authentication. To do the same, I'm trying to implement the steps given on Twitter API's documentation here - ...
0
votes
2answers
418 views
Submit multipart/form-data using mechanize python?
I'm trying to make a POST request of multipart/form-data using mechanize, here's what it looks like from firefox live http header when I actually make a post:
http://example.com/new/example
POST ...
0
votes
1answer
472 views
HTTP Post from Android to Python (Apache Mod_Python)
I want to send HTTP Post data from an Android application to a Python script (Apache with Mod_Python). I tested my Android client and send data successfully to a php script before. When I use a form ...
1
vote
1answer
59 views
How to redirect to another handler in web.py from a POST method
The project is a simple web crawler and and search engine. The "Index" handler has a form for entering the domain to search and the term to find. I would like the POST method to redirect to the ...
2
votes
1answer
67 views
HTTP Post Using httplib2 Error
I am trying to get a new access token by using a refresh token as described by Google here. Google says I need to make a HTTP request. I had no clue how to do that, so I looked up how to do it from ...
1
vote
3answers
752 views
Empty request.POST after upgrade to Django 1.3
The following code works fine under Django 1.2 but fails under Django 1.3 because request.POST is empty, although the form data is posted correctly to the server
def commit_form(request):
...
0
votes
0answers
55 views
504 Gateway Time-out - Android
I am posting something on server trought HttpPost on Android on server with Python with Django. And i get responce 504 Gateway Time-out is it possible that this is made by Android or it is responce ...
1
vote
1answer
480 views
How to post json data using jquery
I want to post JSON data to a url but below mentioned code is not posting data to server.
I am using the python bottle framework and a WSGI server.
It is not receiving the JSON data and the WSGI ...
-1
votes
1answer
146 views
Python Google App Engine Receiving a string in stead of JSON object
I am sending a HTTP POST request from android to a server using the script below
URI website = new URI("http://venkygcm.appspot.com");
HttpClient client = new ...
0
votes
2answers
988 views
As with requests (python 2.7) to get the image file and then using the post to send to the server
As c by requests (Python 2.7) to obtain an image file, and then use the post method to send to the server?
file = requests.get('http://site.com/immage.jpg')
requests.post('http://site2.com/, ...
0
votes
1answer
60 views
web2py to check if it is a POST action
in django, I can easily test if it is post action with
if request.POST:
do whatever
How do I check it is a POST action in web2py
0
votes
1answer
77 views
'Resource Temporarily Unavailable' after POST http request is received - Python
I am having problem with my server socket. I am making a web server and trying to fill a from a browser. The form HTML script is as shown:
<html>
<body bgcolor = black text= white>
...
0
votes
0answers
91 views
what is GAE webapp2 POST data max limit?
Is there a maximum limit for webapp2 POST size? I have an android app that connects to a test development server using python webapp2 on my local machine, and when I do a HTTP POST to the dev server, ...
0
votes
2answers
42 views
POST following request using python
I am new to python
How can i use python to post the following, i need to login to CISCO VNMC and do login and grab cookie from the output, and do logout
POST ...
-2
votes
1answer
156 views
Receiving a HTTP POST request in Python [closed]
How would I deal with a POST from an iOS device to a bit of Python 2.7 script on a server?
I've found this to post the data to the server from the iOS device:
NSMutableURLRequest *request = ...
0
votes
1answer
201 views
AppEngine urlopen connection aborted [Errno 10053]
I'm trying to make a simple http request/response communication between two of my pages on App Engine. Here's the code:
class MainHandler(webapp.RequestHandler):
def get(self):
values = ...
2
votes
3answers
429 views
Un-“jQuery $.param” in Server Side Python (GAE)
I'm using jQuery's $.post() method to post JSON data, specifically I'm posting an array.
$.post('/my/url/',{my_list:['foo','bar','foo baz']})
I've read in the docs that the post method will use the ...
0
votes
1answer
69 views
Getting from POST in included .html page in Django
I am trying to get the POST values of an .html page that has included pages via {% include %} in Django. However, it returns only the POST from the initial html page.
My inner html that is included ...
2
votes
2answers
706 views
Pass data Python to PHP via JSON
the scope of my project is to pass certain values from a python script to a remote php script.
i've a python script that generate an associatve array. For example (already JSON encoded):
{"FRONT": ...
1
vote
2answers
188 views
Trying to POST using a HTTP POST-request in python
I am trying to post two parameters using HTTP POST-request to http://foo.bar.com/submit.jsp.
This works.
conn = httplib.HTTPConnection("www.bar.com")
conn.request("POST", "",parameters)
But this ...
1
vote
2answers
1k views
Howto send a valid XML POST request to ebay API via Python?
I guess this is rather a general problem than ebay specific, but I am not sure: I am trying to send an XML request to the ebay developer API to retrieve an XML response. When using curl, everything ...
0
votes
1answer
188 views
printing python Post request
I am trying to print the POST request that I am doing using my python script. I was wondering if there is a way to print the post request so as to see how the parameters are passed through the script ...
0
votes
2answers
85 views
Comparing Django POST data
I'm expecting POST data and want to create a custom dictionary to use when creating a form based on what is POSTed. I seem to be running into problems trying to compare what is in the POST data. I'm ...
0
votes
3answers
344 views
scraping data from simple website - change 'post' to 'get'
I visited this site:
http://www.avcodes.co.uk/airlcodesearch.asp
And, selected the last option:
Select a letter for ICAO Codes: and chose "B"
Then click Submit.
I monitored the progress using ...
0
votes
1answer
709 views
Python HTTP Post fails
After searching for how to POST large files using python, I came across this and I wrote a program based on that, but when I run it I get the following error message:
Traceback (most recent call ...
6
votes
5answers
664 views
How to shutdown a timed out http POST using urlopen by urllib2 in Python?
Overview
I am using urlopen from the Python 2.7.1 urllib2 package to do a HTTP POST form a Windows XP machine to a remote Apache webserver (for instance the built-in web sharing of Mac OS X). The ...
0
votes
1answer
624 views
Error while installing Poster (Python Module)
I'm trying to install Chris Atlee's python Poster library so I can upload a file using a HTTP POST query from within my script.
On python 2.3, when I type # python setup.py install, I get the ...
1
vote
1answer
678 views
tastypie and django test cases
I am having some trouble with writing a unit test that checks my custom resource post attribute is working. I have managed to make it work with a simple manual jquery, but that isn't helpful for long ...