# IRB error using curl command

**URL:** <https://www.ruby-forum.com/t/irb-error-using-curl-command/148795>\
**Category:** Ruby\
**Created:** [September 17, 2008, 6:24am UTC](https://www.ruby-forum.com/t/irb-error-using-curl-command/148795 "2008-09-17T06:24:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shane](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/dbc845/32.png) [@shane](https://www.ruby-forum.com/u/shane)\
**Post date:** [September 17, 2008, 6:24am UTC](https://www.ruby-forum.com/t/irb-error-using-curl-command/148795/1 "2008-09-17T06:24:50Z")

</div>

Gday all.

Im using the netbeans IDE version 6.1 to create a ruby on rails  
application.

First off… Netbeans wouldnt let me generate an xml.builder type file,  
i had to navigate to app/views/info with explorer and then create the  
who\_bought.xml.builder file there. but netbeans will open the file  
without any problems and let me put code into it.

im trying to use the curl command to test out netbeans ability to  
generate xml…

> > curl [http://localhost:3000/info/who\_bought/1.xml](http://localhost:3000/info/who_bought/1.xml)

but im getting the error:

SyntaxError: (irb):51: , unexpected tSYMBEG

ive tried

> > curl -H “Accept: application/xml”  
> > \ [http://localhost:3000/info/who\_bought/1](http://localhost:3000/info/who_bought/1)

but it gives me the same error.

the number after (irb): is incrementing by 2 each time i try the console  
command.

sorry i cant give much more info… im still pretty new to ruby/rails  
etc…

go nuts with questions if you need more info and ill try to get you an  
answer though! =p
