/    Sign up×
Community /Pin to ProfileBookmark

Form Post request Submit Q

I want to make a primitive file downloader but How can I find out the post request URL? Can someone explain this to me? I would like to understand how this works.

the result should be something like [B]google.com/search?hl=en&q=boo[/B] but i dont understand how this thing works.

Edit: Is there any Apps that can find out the post request perhaps?

[code=php] method=”POST”
action=”http://page.com/file.php?732d9df78c”

<input
type=”hidden”
name=”sid”
value=”732d9df78c”>

<input
type=”hidden”
name=”country”
value=”pl”>

<input type=”submit”
value=”” class=”butt2″
name=”download”
title=”Download!”[/code]

to post a comment
JavaScript

9 Comments(s)

Copy linkTweet thisAlerts:
@FangJul 03.2008 — The server side script will read the name/value pairs, the query which is the bit after the '?'.
Copy linkTweet thisAlerts:
@magicalmuffinauthorJul 03.2008 — The server side script will read the name/value pairs, the query which is the bit after the '?'.[/QUOTE]
no really this does not tell me anything.
Copy linkTweet thisAlerts:
@magicalmuffinauthorJul 03.2008 — http://www.yourhtmlsource.com/cgi/processingforms.html[/QUOTE]
okey I think i understand a bit better now, So just to make shure I understood all corretly Did I put th eURL together correctly now?:

[B]http://dlsite.com/dl.php?27c86 & sid=val4 & country=PL & download=[/B]
[code=php]<form method="POST"
action="http://dlsite.com/dl.php?27c86"

<input type="hidden"
name="sid"
value="val4">

<input type="hidden"
name="country"
value="PL">

<INPUT
title=Download!
type=submit
alt=Download!
name=download>
</FORM>[/code]
Copy linkTweet thisAlerts:
@FangJul 03.2008 — That is what would be sent to the server script, although the '27c86' would not be seen as a POST
Copy linkTweet thisAlerts:
@magicalmuffinauthorJul 03.2008 — That is what would be sent to the server script, although the '27c86' would not be seen as a POST[/QUOTE]
So what does this 27c86 represent then? & shouldnt the download=Filename instead of download= ?
Copy linkTweet thisAlerts:
@FangJul 03.2008 — So what does this 27c86 represent then?[/QUOTE]
It's your example. ?
& shouldnt the download=Filename instead of download= ?[/QUOTE]
The submit button only has a [I]name[/I] (download), but no [I]value[/I] attribute.
Copy linkTweet thisAlerts:
@magicalmuffinauthorJul 03.2008 — okey i got it, 27c86 should represent the file, the server should send me once i make the post request. So this post request is the same as I would press the Submit button right? hmm but some some reason instead its refreshing the page.
Copy linkTweet thisAlerts:
@FangJul 03.2008 — A submit will always refresh the page.
×

Success!

Help @magicalmuffin spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.7,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...