1 |
i tried that already. not working. i will try the stackoverflow.com. thanks |
2 |
|
3 |
|
4 |
On Mon, May 9, 2011 at 4:31 PM, Pandu Poluan <pandu@××××××.info> wrote: |
5 |
> (Again, sorry for top-posting) |
6 |
> |
7 |
> BTW, there are lots of bash gurus in stackovervlow.com. My handle |
8 |
> there is 'pepoluan'. |
9 |
> |
10 |
> Rgds, |
11 |
> |
12 |
> |
13 |
> On 2011-05-09, Xi Shen <davidshen84@××××××××××.com> wrote: |
14 |
>> It is not specific to Gentoo. But do not know where to search or post it :) |
15 |
>> |
16 |
>> My script looks like: |
17 |
>> |
18 |
>> url="http://mypage" |
19 |
>> curl_opts="-x ''" |
20 |
>> curl $url -d \"mydata\" $curl_opts |
21 |
>> |
22 |
>> If I execute it, I got an error from curl, saying it cannot resolve |
23 |
>> the proxy ''. |
24 |
>> |
25 |
>> But If I modify the script to: |
26 |
>> |
27 |
>> url="http://mypage" |
28 |
>> curl $url -d \"mydata\" -x '' |
29 |
>> |
30 |
>> It works fine. |
31 |
>> |
32 |
>> I guess there's something wrong with the argument expansion. Just do |
33 |
>> not know how to fix it. Please help. |
34 |
>> |
35 |
>> |
36 |
>> -- |
37 |
>> Best Regards, |
38 |
>> Xi Shen (David) |
39 |
>> |
40 |
>> http://twitter.com/davidshen84/ |
41 |
>> |
42 |
>> |
43 |
> |
44 |
> |
45 |
> -- |
46 |
> -- |
47 |
> Pandu E Poluan - IT Optimizer |
48 |
> My website: http://pandu.poluan.info/ |
49 |
> |
50 |
> |
51 |
|
52 |
|
53 |
|
54 |
-- |
55 |
Best Regards, |
56 |
Xi Shen (David) |
57 |
|
58 |
http://twitter.com/davidshen84/ |