curl-and-php
Re: File Postilating Errornation
Date: Thu, 05 Jun 2003 08:37:35 -0800
At 6/5/2003 02:29 PM, Daniel Stenberg wrote:
> Yes, but as the form you want to automate really is a multi-part you won't
> suuceed with that! ;-)
Aye. But like I said, I also tried doing it with CURLOPT_POST, which should
set it to regular form post, right?
> > <form id='main_form' name='main_form' method='post'
> > enctype="multipart/form-data"
> > action='/app/external/xml/upload/upload.nl?mtype=XMLDOC&outfile=true'>
>
> This is not the same URL what you used in the script you showed us. This is
> the one you should be using.
No it's not, this is the URL for the UI uploads, not the server to server
uploads. Again, I'm not mimicking any exact form, they just gave me a URL
for S2S posts and told me the file needs to be "posted" there without any
further clarification. And requests for explanation have gone un-answered.
> > <INPUT type='submit' class='bgbutton' value='Submit' id='submitter'
> > name='submitter'>
>
> You set 'submit=1' when this tag says it should be 'submitter=Submit'...
Right you are.
> You should use the exact ones that are used in the <form> tag as that's what
> your browser uses and you says it works with that, right?
Hmmm... I suppose I could change tack and try to use the web page instead,
since I can't get any answer from them. If they were looking for a PUT for
the file, this would be much easier, but as it stands, it's 90% guesswork
on my part.
-- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage, AK 99508 907.770.6200 ext.220 907.336.6205 (fax) Email: skeller_at_healthtvchannel.org Web: www.healthtvchannel.org ------------------------------------------------------- This SF.net email is sponsored by: Etnus, makers of TotalView, The best thread debugger on the planet. Designed with thread debugging features you've never dreamed of, try TotalView 6 free at www.etnus.com.Received on 2003-06-05