• 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: Advice required with cURL, please!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice required with cURL, please!


  • Subject: Re: Advice required with cURL, please!
  • From: Steve Mills <email@hidden>
  • Date: Sun, 22 Oct 2017 23:24:30 -0500

On Oct 22, 2017, at 22:44:13, Brian Christmas <email@hidden> wrote:
>
> Steve, thanks for trying, but your code, and my slightly amended code, both
> return…
>
> Can’t set end of "<!DOCTYPE html>
> <html style=\"height:100%\">
> <head><title> 404 Not Found
> </title></head>
> <body style=\"color: #444; margin:0;font: normal 14px/20px Arial, Helvetica,
> sans-serif; height:100%; background-color: #fff;\">
> <div style=\"height:auto; min-height:100%; \">     <div style=\"text-align:
> center; width:800px; margin-left: -400px; position:absolute; top: 30%;
> left:50%;\">
>         <h1 style=\"margin:0; font-size:150px; line-height:150px;
> font-weight:bold;\">404</h1>
> <h2 style=\"margin-top:20px;font-size: 30px;\">Not Found
> </h2>
> <p>The resource requested could not be found on this server!</p>
> </div></div></body></html>" to {{"email@hidden"},
> {"meSelfSoftWare.com"}}.
>
> What I want is the CONTENT of the file, not its properties, please?

That is the content of the html file which is telling you that the file you're
requesting isn't found. "404 Not Found" means the url you supplied is wrong.

> set theCheckPath to
> "http://meselfsoftware.com/xxxxx list/xxxx Email.txt/“ # Modified for
> posting

Why does it end with a slash? If the file is the *Email.txt file, then it
should stop there and not have a trailing slash.

> set (my theEmailList) to {}
> try
>       say 0
>       set (my theEmailList) to do shell script "curl file_get_contents " &
> theCheckPath

What is file_get_contents? I don't see that in the curl man page. To get a file
with curl, you simply supply the url as its only parameter, just like I showed
before. I'm also a bit confused by the "(my theEmailList)" syntax. Why not just
do "set theEmailList to do shell script…"?

--
Steve Mills
Drummer, Mac geek

 _______________________________________________
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: Advice required with cURL, please!
      • From: Brian Christmas <email@hidden>
References: 
 >Advice required with cURL, please! (From: Brian Christmas <email@hidden>)
 >Re: Advice required with cURL, please! (From: Steve Mills <email@hidden>)
 >Re: Advice required with cURL, please! (From: Brian Christmas <email@hidden>)

  • Prev by Date: Re: Advice required with cURL, please!
  • Next by Date: Re: Advice required with cURL, please!
  • Previous by thread: Re: Advice required with cURL, please!
  • Next by thread: Re: Advice required with cURL, please!
  • Index(es):
    • Date
    • Thread