cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: Access is denied due to an ACL set Dan Fandrich (2007-06-29)

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Fri, 29 Jun 2007 22:41:18 +0200 (CEST)

On Fri, 29 Jun 2007, Guirong Wang wrote:

> In LiveHTTPHeaders,
>
> …
> Content-Disposition: form-data; name="transaction"
>
> fileuploadnowiz
> -----------------------------20452572828792

[...]

> While with curl –trace-ascii, the trace file contains the following:

> 0062: fileuploadnowiz&cookie=siLockLongTermInstID%3D9466%3B%20ASP.NET_
> 00a2: SessionId%3Dz44gvt45fwujyk4511mkigyz%3B%20DMZCookieTest%3D123456
> 00e2: &server=www.somesite.net&url=/home/humanresource.aspx&instid=9466&customw
> 0122: izlogonenabled=1&customwiznameupload=INSUISFT+Upload+Wizard&Arg12=home&
> 0162: Arg06=559187&Arg01=648976&Arg02=@test1.txt&Upload+The+Fi
> 01a2: le=-+Upload+-

So with firefox it makes a multipart formpost and with curl you made a
"regular" post. So use -F, not -d to do the post with curl.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-06-29