I'm trying to use Eagle 5.11 and netget() to get some information from a webpage. The URL contains the string "%2F". When netget() sees that string, it translates it to "%252F". Is there a way to get netget() to leave the characters in a URL alone?
I'm trying to use Eagle 5.11 and netget() to get some information from a webpage. The URL contains the string "%2F". When netget() sees that string, it translates it to "%252F". Is there a way to get netget() to leave the characters in a URL alone?
OK, I've tried explaining this problem as best I can. So far, two people have told me "netget() is operating correctly." So I'll turn this problem around:
Can someone please send me the URL string that I can pass to netget() which will take me to this page: PIC18F14K50-I/SS Microchip Technology | PIC18F14K50-I/SS-ND | DigiKey ?
Can someone please send me the URL string that I can pass to netget()
which will take me to this page: PIC18F14K50-I/SS Microchip Technology |
PIC18F14K50-I/SS-ND | DigiKey
(http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND)
?
Eagle 6.5.2 returned the Digikey page just fine for me. dlgMessageBox() won't load images, but other than that no problems whatsoever.
string url = "http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND/1999472";
string res;
netget(res, url);
dlgMessageBox(res); //ugly, but it works
Eric
On 02/26/2014 12:13 PM, Eric Stevens wrote:
Can someone please send me the URL string that I can pass to netget()
which will take me to this page: PIC18F14K50-I/SS Microchip Technology |
PIC18F14K50-I/SS-ND | DigiKey
(http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND)
?
Eagle 6.5.2 returned the Digikey page just fine for me. dlgMessageBox() won't load images, but other than that no problems whatsoever.
string url = "http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND/1999472";
string res;
netget(res, url);
dlgMessageBox(res); //ugly, but it works
Eric
Ah, I just noticed that your URL may not be complete. Its missing the /1999472 at the end. Without it I get a 404. If I search via Firefox with the URL you have it gives me the correct page. If I search for PIC18F14K50-I/SS (http://www.digikey.com/product-search/en?vendor=0&keywords=PIC18F14K50-I%2FSS) it gives me the URL I used, which appears to be identical. That is a bit odd.
Eric
You've used the wrong URL. Try it with the string "http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND";
The digit string at the end of the URL allows the Digikey webserver to find the page no matter what errors occur earlier in the URL. For example, the URL "http://www.digikey.com/product-detail/en/garbage/more_garbage/1999472" goes to the correct page as well. Unfortunately, I can't devine that digit string from any publicly available information like the manufacturer part number. It's an internal number generated by Digikey.
So I guess the final take-away from this discussion is, "netget() is broken and your problem can't be fixed."
Maybe a silly question at this stage, but which operating system are you on?
Windows 7 Professional, 64-bit running Eagle 5.11.0.
FWIW, I have Windows 7 Pro 64 bit with EAGLE 6.5, and I see the same results...
// Works:
string url = "http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND/1999472";
// Doesn't work (404):
//string url = "http://www.digikey.com/product-detail/en/PIC18F14K50-I%2FSS/PIC18F14K50-I%2FSS-ND";
string res;
netget(res, url);
dlgMessageBox(res);
Yes, anything that has the "1999472" digit string on the end will work even if the rest of the URL is corrupted by netget() because the Digikey webserver can use those digits to find the page in their website. I would use that to fix my problem except there's no way to calculate that number from just the manufacturer's part # or the Digikey product #.
<conspiracy>
Of course, it's only because you're trying to connect to Digikey and not Newark...
</conspiracy>
Seriously though, I forwarded this to one of the guys at Cadsoft to see if he has any ideas...