cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: cURL Command line tool redirection Problem (The location recivedafter a post is not followed succesfful)

From: oren <oren_amsalem1_at_hotmail.com>
Date: Fri, 5 Sep 2008 22:06:15 +0300

> On Fri, 5 Sep 2008, oren wrote:
>
>> Is there a way to see what Is the Location recived by Curl after the
>> post?
>
> Yes, -v.
>

Yes this -v thing really is good, Its a shame i didnt know about it till
know, Its really eyes opening.
Well i didnt solve the problem still curl give me the wrong page, But i can
get my information from the -v page.
I didnt manage to use the User-Agent and the reffer, Its say i need to
login....
I guess its because i dont use the User-Agent anf reffer when i log-in
all my lines are without the -e and -A
AnyWay the line i use is

curl -v -b cookies.txt -c cookies.txt -s -S -L -d "data" "wbsite"

And i still get the wrong page from curl,
I get the page that tell me - > No Thread specified. If you followed a valid
link, please notify the administrator</div>"
<-

I add the log.txt file that i recive from -v.

In case you think its a bug or something i would love to help.

If you think its because i dont use user-agent and reffer .. i wold love to
add to all the lines.

>> this command is after i do all the nessery once before i post, The post
>> is successful, I see the topic on my forum, The rediaction is not
>> successful
>>
>> curl -b cookies.txt -c cookies.txt -e '&$URL&'/t'&$Topic&'-l.html -A
>> "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; he; rv:1.9.0.1)
>> Gecko/2008070208 Firefox/3.0.1" -s -S -L -d "ALL THE POST" "website"
>
> The referer looks weird.
>
> Are you using a recent curl version?

Yes i use the latest version

>
> If you try that redirected-to URL directly with curl, does that work fine?
>

Sorry i dont really understand., I use curl in other places and i think the
rediraction work fine

Thanks.

-------------------------------------------------------------------
List admin: http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html

Received on 2008-09-05