Re: do shell script curl where url must contain double quotes
Re: do shell script curl where url must contain double quotes
- Subject: Re: do shell script curl where url must contain double quotes
- From: Ian Ferguson <email@hidden>
- Date: Tue, 30 Mar 2004 17:57:26 -0500
On 3/30/04 3:47 PM, "Personality Jeffrey H. Dean" <email@hidden> stated:
>
Is it possible to use curl --url with a url that must contain double
>
quotes? Escaping the quotes as below gives a parameter error from the
>
server. I have also tried other types of quotes without success.
>
>
Thanks,
>
Jeff
>
>
set theSource to do shell script "curl --url
>
'testing.shippingapis.com/ShippingAPITest.dll?API=TrackV2&XML=
>
<TrackFieldRequest USERID=\"1111\" PASSWORD=\"2222\"> <TrackID
>
ID=\"EO001607035US\"/> </TrackFieldRequest>'"
>
_______________________________________________
>
applescript-users mailing list | email@hidden
>
Help/Unsubscribe/Archives:
>
http://www.lists.apple.com/mailman/listinfo/applescript-users
>
Do not post admin requests to the list. They will be ignored.
>
set getWhat to quoted form of
("testing.shippingapis.com/ShippingAPITest.dll?API=TrackV2&XML=<TrackFieldRe
quest USERID=\"1111\" PASSWORD=\"2222\"><TrackID ID=\"EO001607035US\"/
>
</TrackFieldRequest>")
set theSource to do shell script "curl -L " & getWhat
Make sure that your spaces are encoded --> = " "
--
Ian Ferguson
Applications Developer
i:media
Toronto, Canada
mailto:email@hidden
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.