Questions tagged [post-parameter]
32 questions
18
votes
3 answers
External django redirect with POST parameters
I'm trying to create a redirect in a Django view to an external url with some get parameters attached to the request. After doing some looking around and some trying around, it seems I have hit a road block.
So my view looks something like this
def…

googletorp
- 33,075
- 15
- 67
- 82
7
votes
3 answers
Autosaving a form in Rails with AJAX
I am trying to autosave a form for the Post#new action. Every minute or so, I want to POST to Post#autosave and then I'll check for first_or_create and save/updated the record in the Posts table. My problem though is, I can no longer access the POST…

mackshkatz
- 861
- 8
- 19
6
votes
3 answers
get post parameters in zend framework in "put" method
I am getting get parameters using this
$this->params()->fromQuery('KEY');
I found two way to get POST parameters
//first way
$this->params()->fromPost('KEY', null);
//second way
$this->getRequest()->getPost();
Both of this working in "POST"…

keen
- 3,001
- 4
- 34
- 59
5
votes
1 answer
POST/GET bindings in Racket
Is there a built-in way to get at POST/GET parameters in Racket? extract-binding and friends do what I want, but there's a dire note attached about potential security risks related to file uploads which concludes
Therefore, we recommend against…

Inaimathi
- 13,853
- 9
- 49
- 93
4
votes
3 answers
How to redirect to an external url with parameters and POST method?
I want save form data before submit to action url in flask
4
votes
1 answer
Do I need to escape a string which is post parameters to pass in HTTP body?
I use HTTPUrlConnection to request a REST API.
I ser "Content-type" header as follows :
urlConnection.setRequestProperty("Content-type",
"application/x-www-form-urlencoded");
I set HTTP body as follows :
out =…

Geek
- 8,280
- 17
- 73
- 137
3
votes
2 answers
post request with link_to in rails 3
How do I make a remote POST request with custom parameters with a link_to helper in rails 3?
I tried something like this:
link_to 'Submit', model_path, :query => "value", :remote => true, :method => :post
The POST works and the control comes to the…

akula1001
- 4,576
- 12
- 43
- 56
2
votes
1 answer
Symfony- passing post params returns the same
I defined my postParams where I want to pass "hash" value from db.
What I am trying to accomplish is that if hash exists in my Session table to return TRUE and if not to return FLASE.
Problem is my code always returns TRUE.
What I am…

Tommy J
- 109
- 9
2
votes
2 answers
Sending post parameters with JsonObjectRequest volley to active campaign api
I am adding contacts to active campaign api but the request is not sending the post parameters.The parameters are being sent from postman but with volley its not working. I have tried sending params from the constructor also but no progress. Here is…

Wijdan
- 203
- 3
- 12
2
votes
2 answers
open browser from java program with post parameter prefilled
I have a java program, where i can open a Internet Explorer or Any Browser.
using Runtime.getRuntime().exec(cmd);
But I want to open a browser from my java program mentioning url and post parameter.
First of all, is this possible? How can i achieve…

Hebbar
- 141
- 12
1
vote
1 answer
How to extract POST parameters in API - Lift framework
Hi I am using the following for my api in Lift:
case "api" :: "all" :: _ Get req => for {
val after <- req.param("after")
val before <- req.param("before")
val limit <- req.param("limit")
} yield…

Faran
- 71
- 2
- 8
1
vote
1 answer
IllegalStateException: Expected a string but was BEGIN_OBJECT at line 1 column 2 path $; nested exception is com.google.gson.JsonSyntaxException
I'm doing a post request in SpringBoot and testing it with postman, but when I pass the body in Postman and try to read it in my application, it throws the error.
This is the method in Spring:
@PostMapping(path=PathConstants.START_ACTION)
public…

Usr
- 2,628
- 10
- 51
- 91
1
vote
0 answers
can POST parameters be sent using Content Type application/json?
As far as I understand, POST parameters can be sent using Content-Type only either multipart/form-data or x-www-form-urlencoded. Is that right?
I want to send the parameters wrapped in JSON. Is that possible?
Will the parameters in the request
POST…

banan3'14
- 3,810
- 3
- 24
- 47
1
vote
0 answers
Volley post params with multi level array is not working
I am using volley JSONObject Request. I am trying to send multi level array in POST params, but it is not working.
Here is my array structure.
[
"param1" => "single value",
"param2" => [123,321],
"param3" => 112
]
I am not sure how to…

Faisal Ahsan
- 928
- 1
- 12
- 22
1
vote
1 answer
How to access POST parameters into python web server using web.py module?
I write a python script like this:
import web
import commands
urls = ('getprint', 'GetPrint', 'postprint', 'PostPrint')
app = web.application(urls, globals())
class GetPrint:
def GET(self):
return "Hello, this is GetPrint function…

Omidreza Bagheri
- 781
- 1
- 11
- 22