Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums

Go Back   Code Forums > Application and Web Development > PHP

Reply
 
LinkBack Thread Tools Display Modes
Old 08-09-2003, 07:48 AM   #1 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
sending POST multiple post requests in one php script.

lets say i have an array of urls which all have the same exact form.

is it possible to send post variables and get a response without actually sending it through a form?

for example .. here is some example:
PHP Code:
<?
foreach($urls as $url)
{
  
$user sde;
  
  
// send vairables to $url via the POST method here
}
?>
if that is not possible .. how could i automate it running through the array of urls and sending to multiple forms.
__________________
Mike
sde is offline   Reply With Quote
Old 08-09-2003, 10:19 AM   #2 (permalink)
sdeming
Code Monkey
 
Join Date: Jul 2002
Location: Michigan
Posts: 85
sdeming is on a distinguished road
You can POST using curl.

Take a look here:

- http://us2.php.net/manual/en/function.curl-exec.php
__________________
Scott
B4 09 BA 09 01 CD 21 CD 20 53 63 6F 74 74 24
sdeming is offline   Reply With Quote
Old 08-09-2003, 05:10 PM   #3 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,444
sde is on a distinguished road
thanks scott .. this makes things very very interesting =)
__________________
Mike
sde is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP ban IP range script Boks PHP 23 05-21-2008 03:07 AM
php script that can upload binary data infinite_root PHP 9 08-27-2004 06:03 PM


All times are GMT -8. The time now is 06:30 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting