php


Fetch a POST request that a site is sending to itself?


So I'm creating an app for a specific website, which has comments on certain articles/entities or whatever. I already know how to fetch those comments with RSS, but I'm also curious if I can implement a reply functionality from the app itself. The site doesn't have an API for that, but I know that when you write a comment, it sends a POST request with the contents of the form.
Is there a way to find out what that POST request looks like, so I can send a similar one from my app? The end goal is to be able to reply/post new comments from my app to that website.
Any thoughts? Just in theory.
Is there a way to find out what that POST request looks like, so I can
send a similar one from my app?
Use some debuger, like FireBug for FF or DragonFly for Opera.
so I can send a similar one from my app?
It would be not secure if anyone could see the nature of requests and make such requests in their apps. Apps may be bad and send spam.
There should be some Captcha or CSRF protection.
If there is - you plan will not work.
If there isn't - it is security hole.
My advice.
Better create some API an call it from your APP.
Simple HTTP, XML-RPC, or SOAP.
This will be more secure and nice usefull thing to know.
Look at the page which sends the post request. If the HTML code or javascript is simple you can understand which is the POST data sent to the server. Otherwise maybe you have access to the server and can look at the code there?
Point your browser with Chrome or Firefox (with the Firebug plugin) and open the inspector (Control-Alt-I / Command-Alt-I), then the "Network" tab. There you'll see real-time requests and responses to the server.
If you need to implement authentication from your app, google "cookie jar" and your language.

Related Links

How to find days difference between two dates in php using variables in date_create?
how to fetch a location from database mysql and pinpoint the locations using markers on google maps
Connect to 000webhost database from localhost
Convert PHP array to Json contain object
How to find last month's records from timestamp from MySQL?
error :024 in sms sending with smsindiahub
Using POST array to select elements in mysql query
Crontab do not run the php command
Opencart SEF ruins relative links
How to fix a wrong PHP path on mac?
getting the user ID in wordpress
Force codeception to ignore a PHP file?
EPP connection timeout on remote server, works on Wamp
Set $mysqli as a global variable for OOP
Getting error while trying to implement google authentication in my local website
PHP Session variables not passing but the session ids are the same

Categories

HOME
rust
mod-rewrite
tomcat
shinyapps
yii
ews
whmcs
iverilog
yql
gallery
tfs2015
tibco
elastic-load-balancer
nexus3
grocery-crud
feature-extraction
multi-step
pushdown-automaton
mahout-recommender
maven-plugin
boomi
jitsi
yii2-basic-app
amazon-sns
intel
tracing
spreadsheetgear
openbravo
toad
objectmapper
instructions
windowsiot
commonsware-cwac
memory-fences
python-2.x
universal
android-collapsingtoolbar
winrm
nanogallery
text-decorations
python-jira
jacoco-maven-plugin
resampling
data-uri
system-on-chip
hypothesis-test
optionaldataexception
asihttprequest
docker-ucp
ol3-google-maps
lightning-workbench
hibernate-ogm
cordova-ios
gtk#
1010
case-when
multi-touch
zynq
xcode8-beta4
piping
polymerfire
teamviewer
gravatar
voronoi
self
chicagoboss
dynamics-ax-2012-r2
componentart
physicsjs
web-api
whitespace-language
innerhtml
tidyr
subview
incron
tabris
mfmessagecomposeview
tabletools
jchartfx
code39
particle-swarm
frontbase
revmob
sql-view
node.js-stream
acceptance-testing
flv
dibs
cmath
django-filebrowser
linkbutton
audiotoolbox
zotonic
mkannotation
netstream
net-use
digiflow
solandra
ios-4.2
rawcontacts
spring-modules
eai
jboss-mdb

Resources

Encrypt Message