Using PHP/CURL, how to upload a file to a remote server wherein the user must be logged in first?
thanks
Using PHP/CURL, how to upload a file to a remote server wherein the user must be logged in first?
thanks
FYI CURL can pass authentication credentials along like this:
curl --user USER:PASSWORD -s http://localhost:4848/monitoring/domain/server/transaction-service
But it depends on what the server is expecting.
EDIT:
Here's how to send POST data:
curl --data "birthyear=1905&press=%20OK%20" http://www.example.com/when.cgi
Please ask if you have any questions.