/    Sign up×
Community /Pin to ProfileBookmark

‘post’ http request without using header and libraries

Hello,
I searched on the web for this and almost give up, so I want to ask here:
does anyone know how to do HTTP request using PHP , Post method without using ‘header(location:’, I don’t want use header, because I don’t want to reload a remote page.

what I m trying to do, is to make page on my site that send post requests to another page hosted on another site and then without going to that page.

no header, no popup, no external php libraries I wanna use
thank you for reading and for any help in advance.

to post a comment
PHP

4 Comments(s)

Copy linkTweet thisAlerts:
@Ahmed_TohamyAug 21.2006 — you can user iframe to do this and give it a display style : none so it''ll not be visible for the post maker

ihope my idea be helpfull for you
Copy linkTweet thisAlerts:
@zoromaskcomingauthorAug 21.2006 — Thank you for your reply, ahmed,

however, iframe and ajax are solutions I put to the end, as now I want to see if there is such function or way in php only. the thing I m trying is to post and forget, I don't want to take time download the whole page, I want to send post.

I hope there is a way in PHp ?
Copy linkTweet thisAlerts:
@Ahmed_TohamyAug 21.2006 — i didn't think so that there is another way to do this from php until the form using $_GET so you can pass the values to it by fopen function
Copy linkTweet thisAlerts:
@zoromaskcomingauthorAug 21.2006 — Thank you so much Ahmed, actually this is what I was looking for, I miswrote 'post', but what I was thinking is get way. so I tried it and it worked just fine. thank you again.
×

Success!

Help @zoromaskcoming 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.18,
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,
)...