Quantcast

Failing to add packages which includes "++" with REST API

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Failing to add packages which includes "++" with REST API

rgupta
I am trying to add package libstdc++33-32bit using REST API.
Here is the command I am using

- I have xxxxxx out my key

 curl -u rgupta2:xxxxxxx -d /tmp/junk1 http://susestudio.com/api/v1/user/appliances/359544/cmd/add_package

<success>
  <details>
<status>
  <state>equal</state>
  <packages_added>0</packages_added>
  <packages_removed>0</packages_removed>
</status>
  </details>
</success>

- It seems I can add all other packages.
- It must be something to do with ++ or special characters in the package name

-content of /tmp/junk1
name=libstdc++33-32bit

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Failing to add packages which includes "++" with REST API

Jordi Massaguer Pla
Am Thu 26 Jan 2012 06:26:13 PM CET schrieb rgupta <[hidden email]>:

> I am trying to add package libstdc++33-32bit using REST API.
> Here is the command I am using
>
> - I have xxxxxx out my key
>
>  curl -u rgupta2:xxxxxxx -d /tmp/junk1
> http://susestudio.com/api/v1/user/appliances/359544/cmd/add_package
>
> <success>
>   <details>
> <status>
>   <state>equal</state>
>   <packages_added>0</packages_added>
>   <packages_removed>0</packages_removed>
> </status>
>   </details>
> </success>
>
> - It seems I can add all other packages.
> - It must be something to do with ++ or special characters in the package
> name
>
> -content of /tmp/junk1
> name=libstdc++33-32bit
>
>

Hi,

please replace "+" by "%2B"

for more details see:

http://www.w3schools.com/tags/ref_urlencode.asp

>
> --
> View this message in context:  
> http://suse-studio-users.1598176.n2.nabble.com/Failing-to-add-packages-which-includes-with-REST-API-tp7227548p7227548.html
> Sent from the SUSE Studio Users mailing list archive at Nabble.com.
>


Loading...