I a web site that returns parts of web page as response data when a POST request is submitted. I have tried pasting the URL into the extractor, but it returned no data. Is there a way to extract the data from a POST response ?
Related
Below is scenario when doing 3DS authentication in Moneris. They will send the data in my url which I have given to them. How can I get the value in my asp.net app.
Cavv Lookup Request – mpiCavvLookup
(Challenge Flow Only)
In the challenge flow, the 3DS server will POST a “cres” value back to the notificationURL provided in the threeDSAuthentication request once the cardholder has completed the challenge. The “cres” is then posted to the Moneris 3DS server in the CavvLookup request, the response to this request will include the result of the challenge, which will include the eci and the cavv if the challenge was successful.
How can I get the above mentioned "cres" value in my asp.net application.
I am posting a request using post request method but the log is showing it is taking empty data due to which action is not being perfomed
${auth}= Create List username password
&{key}= Create Dictionary prokey=Key:uiuij343jhkjk
Create Session alias uri auth=${auth} disable_warnings=true
${response}= POST Request alias ${delete_uri} data=${key}
logs show:
Post Request using : alias=alias, uri=******, data=empty, headers=None, files=None, allow_redirects=True
INFO ${response} = Response [200]
Note:
data type is form-data
any help appreciated , how would i pass data to the post request.
GET:
GET /blog/?name1=value1&name2=value2 HTTP/1.1
Host: website.com
POST:
POST /blog/ HTTP/1.1
Host: website.com
name1=value1&name2=value2
I don't see why there should be a difference.
GET is supposed to be used for bookmark-able pages or repeatable searches; so the URL stores the query data so it can be used repeatedly by the browser.
POST, on the other hand, is for one-time requests containing sensitive information or information that might be too long for a query string. The data isn't supposed to be saved like in a GET request, so it is stored in the body.
You might also want to see this SO answer: https://stackoverflow.com/a/198473/436524
It's a result of how form submission is defined for HTML forms. It has nothing to do with HTTP itself.
I am calling webservice which takes two parameters like category and salt then provide the json output with constructed url but url is not working. PFA url
Service Url:
http://qalisting.corelogic.com/ChaseListingServices/v1.5/test
constructed URL: http://qalisting.corelogic.com/ChaseListingServices/v1.5/listings/search/test/0/4e9c00b32794edfeba257aa0c74f500b
Looking at the error message on your constructed URL, the Service needs to be called using a POST and not a GET Request.
Responding to your comments: it's not the URL which is the problem but how it is called. When you follow a link, such as the one you posted - the browser sends it as a GET request. The service is expecting the JSON arguments as part of the "body" of a POST request. This must be done programmatically.
I want to encode a URL such that it sends a POST request to a server. is that possible? and if so, how? I have searched around and mostly found that appending parameters to a url only sends them as parameters for GET request. is there a way to do that for POST request?
basically, i am trying to implement a CSRF (not for malicious but testing purposes) and i want to be able to send a POST request to a server by encoding my url.
GET and POST are HTTP methods. In GET the request parameters are taken as query string in the request URL. In POST the request parameters are taken as query string in the request body.
So you need to instruct whatever tool you're using to pass the parameters through the request body instead of the request URL along with a HTTP method of POST instead of (usually the default) GET.
Either way, the parameters just needs to be URL encoded anyway. There's no difference for POST or GET, unless you're setting the content encoding to multipart/form-data instead of (usually the default) application/x-www-form-urlencoded.
If you give more details about what programming language and/or library and/or framework you're using, then we may be able to give a more detailed answer how to invoke a HTTP POST request.
No.
The method is not part of the Url. You'd have to make the request in such a way that it uses the post method.
You didn't mention any details, but if it's from inside a document in the browser, you can either use a form:
<FORM action="someUrl.htm" method="post">
You can make a link that will send the form by javascript:
<form action="http://www.example.com/?param=value" method="post" id="someForm">
link
</form>
or an XmlHttpRequest with javascript:
var xhr = new XMLHttpRequest();
xhr.open("POST", url);
...