cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1306 problem with uri extraction

From: Daniel Stenberg <bagder_at_users.sf.net>
Date: Mon, 18 Nov 2013 15:01:36 +0000

- **status**: open --> pending-invalid
- **assigned_to**: Daniel Stenberg

---
** [bugs:#1306] problem with uri extraction**
**Status:** pending-invalid
**Labels:** url encoding 
**Created:** Mon Nov 18, 2013 02:41 PM UTC by Naveen Kumar A.V
**Last Updated:** Mon Nov 18, 2013 02:41 PM UTC
**Owner:** Daniel Stenberg
[nveeranna@cjp03apigee ~]$ curl -k "http://mitchell-prod.apigee.net:8081/Shop/ShopService.svc/$metadata" -v
* About to connect() to mitchell-prod.apigee.net port 8081 (#0)
*   Trying 54.200.44.139...
* connected
* Connected to mitchell-prod.apigee.net (54.200.44.139) port 8081 (#0)
> <u>GET /Shop/ShopService.svc/ HTTP/1.1 </u>
> User-Agent: curl/7.24.0 (x86_64-redhat-linux-gnu) libcurl/7.24.0 NSS/3.13.5.0 zlib/1.2.5 libidn/1.18 libssh2/1.2.2
> Host: mitchell-prod.apigee.net:8081
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Content-Type: text/xml
< Content-Length: 39
< Connection: keep-alive
<
* Connection #0 to host mitchell-prod.apigee.net left intact
Access denied for the Developer Key: na* Closing connection #0
here in the underlined line we can see that data '$metadata' was not even taken by curl. But if you escape it using a backslash it will display it the GET call that it makes as shown below..
[nveeranna@cjp03apigee ~]$ curl -k "http://mitchell-prod.apigee.net:8081/Shop/ShopService.svc/\$metadata" -v
* About to connect() to mitchell-prod.apigee.net port 8081 (#0)
*   Trying 54.200.65.134...
* connected
* Connected to mitchell-prod.apigee.net (54.200.65.134) port 8081 (#0)
> <u>GET /Shop/ShopService.svc/$metadata HTTP/1.1</u>
> User-Agent: curl/7.24.0 (x86_64-redhat-linux-gnu) libcurl/7.24.0 NSS/3.13.5.0 zlib/1.2.5 libidn/1.18 libssh2/1.2.2
> Host: mitchell-prod.apigee.net:8081
> Accept: */*
>
< HTTP/1.1 401 Unauthorized
< Content-Type: text/xml
< Content-Length: 39
< Connection: keep-alive
<
* Connection #0 to host mitchell-prod.apigee.net left intact
Access denied for the Developer Key: na* Closing connection #0
But as it is given in within double quotes it should not matter.Please let me know if you need more info. But this works in REST client POSTMAN (chrome tool).
---
Sent from sourceforge.net because curl-tracker@cool.haxx.se is subscribed to https://sourceforge.net/p/curl/bugs/
To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/curl/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2013-11-18

These mail archives are generated by hypermail.

donate! Page updated May 06, 2013.
web site info

File upload with ASP.NET