• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: do shell script, curl and cookies
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: do shell script, curl and cookies


  • Subject: Re: do shell script, curl and cookies
  • From: Doug McNutt <email@hidden>
  • Date: Thu, 11 Apr 2013 16:55:49 -0600

At 21:02 +0000 4/11/13, Jim Skibbie wrote:
>Content-type: multipart/alternative;
> boundary="Boundary_(ID_ovsKzVZJG3aDVI8+mH3fmg)"
>Content-language: en-US
>
>That looks right to me, but maybe you should flesh out a known path to your cookie, just to confirm it is writing something and it where and what you expect:
>
>
>do shell script "curl --cookie-jar ~/Desktop/testcookie 'http://www.example.com/login?username=bob&password=pass'"
>
>do shell script "curl --cookie ~/Desktop/testcookie 'http://www.example.com/search?q=something'"
>


That's a good idea.

Full pathnames are generally required in any Do Shell Script command and I'm not so sure about that ~ shortcut to your home directory.

curl --cookie-jar zecookie.txt

depends on the current working directory when used in a Terminal session. But when it's called from AppleScript remember that no profile or .tcshrc is executed to set your $PATH and a working directory. I'm not even sure that the shell as called from AppleScript even knows who you are. How about:

curl --cookie-jar /Users/yourusername/zecookie.txt

And you might also need:

Do shell script curl --cookie-jar quoted form of  "/Users/yourusername/zecookie.txt"

though the exact syntax of that likely needs attention.

--

--> A fair tax is one that you pay but I don't <--
 _______________________________________________
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

  • Follow-Ups:
    • Re: do shell script, curl and cookies
      • From: Christopher Stone <email@hidden>
References: 
 >Re: do shell script, curl and cookies (From: Jim Skibbie <email@hidden>)

  • Prev by Date: Re: do shell script, curl and cookies
  • Next by Date: Re: duplicate command
  • Previous by thread: Re: do shell script, curl and cookies
  • Next by thread: Re: do shell script, curl and cookies
  • Index(es):
    • Date
    • Thread