Discussion:
Problem with "&"
(too old to reply)
Mike Lambert
2018-03-21 02:38:25 UTC
Permalink
Hi Team,



I need your help .



I am sorry that I have had to doctor the web address . but the "&" is part
of the web address.



I have a web address :-



http://WWW.WebPage.Com/results.aspx?categoryid=BBBBBB/CCCCCC
<http://WWW.WebPage.Com/results.aspx?categoryid=BBBBBB/CCCCCC&AAAAAA=1234&fu
llview=true> &AAAAAA=1234&fullview=true



I receive an error - AAAAAA is not recognised as an internal or external
command.



Also fullview is not recognised as an internal or external command.



I understand why I am receiving the message but I don't know how to work
around it.



Regards,



Mike
Bill Mercer
2018-03-21 18:14:28 UTC
Permalink
My first guess is you're using curl on Windows and the & character is being interpreted as a command separator, dividing your command up into multiple separate commands.
If I'm right, putting quotes around the URL should fix it.

From: curl-users [mailto:curl-users-***@cool.haxx.se] On Behalf Of Mike Lambert
Sent: Tuesday, March 20, 2018 22:38 PM
To: 'the curl tool' <curl-***@cool.haxx.se>
Subject: Problem with "&"

Hi Team,

I need your help ...

I am sorry that I have had to doctor the web address ... but the "&" is part of the web address.

I have a web address :-

http://WWW.WebPage.Com/results.aspx?categoryid=BBBBBB/CCCCCC&AAAAAA=1234&fullview=true

I receive an error - AAAAAA is not recognised as an internal or external command.

Also fullview is not recognised as an internal or external command.

I understand why I am receiving the message but I don't know how to work around it.

Regards,

Mike
Mike Lambert
2018-03-21 22:04:17 UTC
Permalink
Hi Bill,



Thank you for your help.



The URL is a program variable so I can't put " around it.



I replaced the & with %26 .. html code . works fine.



Thank you.



Mike



From: curl-users [mailto:curl-users-***@cool.haxx.se] On Behalf Of Bill
Mercer
Sent: 22 March, 2018 5:14 AM
To: 'the curl tool' <curl-***@cool.haxx.se>
Subject: RE: Problem with "&"



My first guess is you're using curl on Windows and the & character is being
interpreted as a command separator, dividing your command up into multiple
separate commands.



If I'm right, putting quotes around the URL should fix it.



From: curl-users [mailto:curl-users-***@cool.haxx.se] On Behalf Of Mike
Lambert
Sent: Tuesday, March 20, 2018 22:38 PM
To: 'the curl tool' <curl-***@cool.haxx.se
<mailto:curl-***@cool.haxx.se> >
Subject: Problem with "&"



Hi Team,



I need your help .



I am sorry that I have had to doctor the web address . but the "&" is part
of the web address.



I have a web address :-



http://WWW.WebPage.Com/results.aspx?categoryid=BBBBBB/CCCCCC
<http://WWW.WebPage.Com/results.aspx?categoryid=BBBBBB/CCCCCC&AAAAAA=1234&fu
llview=true> &AAAAAA=1234&fullview=true



I receive an error - AAAAAA is not recognised as an internal or external
command.



Also fullview is not recognised as an internal or external command.



I understand why I am receiving the message but I don't know how to work
around it.



Regards,



Mike

Loading...