Re: do shell script, curl and cookies
Re: do shell script, curl and cookies
- Subject: Re: do shell script, curl and cookies
- From: Axel Luttgens <email@hidden>
- Date: Fri, 12 Apr 2013 08:31:15 +0200
Le 11 avr. 2013 à 16:14, Håvard Graudo a écrit :
> [...]
> This works in Terminal:
> [...]
> curl --cookie zecookie.txt 'http://www.example.com/search?q=something'
> --> returns my search. all nice and dandy
> [...]
> However if I do the SAME THING using 'do shell script' it fails:
> [...]
> do shell script "curl --cookie zecookie.txt 'http://www.example.com/search?q=ssomething'"
> -- NOT LOGGED IN
>
> What works in Terminal does not with 'do shell script'.
Hello Håvard,
It seems you are assuming your cookie file to be in the current working directory.
In he case of a shell run from AppleScript, that directory isn't necessarily the expected one (currently, it seems to default to "/").
Could you try by specifying the full path of file "zecookie.txt" in your "do shell script" commands?
Axel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden