• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

PHP Question - fopen() + http + post data

Retro2001

Senior member
I've yet to figure out the right search string to coax this data out of google or php.net, so I'll try you guys. Is there a way to submit postdata when requesting a file via http via the fopen() function?

What I'm trying to do:
Send some data via POST to an ASP script, then pull some data out of the returned page. Any ideas?

Peace,
will
 
AFAIK, and I've been doing php for a while now. Using fopen(), you cannot do it. You are also in the wrong forum...and I mean you're NOT EVEN CLOSE to the right forum. Like, if I threw a rock at OT from a mile away with both arms tied behind my back, I wouldn't be as far as you.

In any event you want fsockopen() to open an http connection and send the post request manually. Then read the input. Should be like 30-40 lines of code really.
 
Good to hear that I'm in the wrong neck of the woods 😉. Although, I've gotten answers for much more obscure questions here before....something about the 1000 geeks / hour that this place pulls 🙂. I'll go hit up php.net for fsocketopen() info. I was secretly hoping that there was a way to just pass a simple array of data to fopen().

Peace,
will
 
Originally posted by: Retro2001
Good to hear that I'm in the wrong neck of the woods 😉. Although, I've gotten answers for much more obscure questions here before....something about the 1000 geeks / hour that this place pulls 🙂. I'll go hit up php.net for fsocketopen() info. I was secretly hoping that there was a way to just pass a simple array of data to fopen().

Peace,
will

That's fsockopen(). Not fsocketopen().

and it's 4000 geeks/hour.
 
Back
Top