![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Dec 2007
Posts: 1
Rep Power: 0
![]() |
cURL issue weird characters
I am writing a program that will send out invitations to social networking sites I am using curl to connect and get info. On all the sites curl works but on tagged.com it throws me ASCII characters instead of the website. It's like it is encrypted or something.
Here is my code nothing out of the ordinary: any ideas of why this is happening? |
|
|
|
|
|
#2 |
|
Programming Guru
![]() Join Date: Apr 2005
Posts: 1,827
Rep Power: 5
![]() |
Re: cURL issue weird characters
I've never used cURL before, but one of the HTTP header attributes specifies whether or not the response should be compressed or not. This is specified in the "Accept-Encoding" parameter, and maybe since you don't seem to be specifying that, tagged.com assumes a default of compression, whereas most sites will default to no compression.
See section 14.3 in the rfc2616 standard for more information on "Accept-Encoding". Then you could look into how to specify no compression with cURL. Disclaimer: This might be a total waste of your time, because I've never used cURL and it could be a very different problem. This is just something you could try if you really want to get this resolved asap. |
|
|
|
|
|
#3 |
|
12 years old
Join Date: Nov 2007
Posts: 80
Rep Power: 1
![]() |
Re: cURL issue weird characters
ord() and substr()
__________________
iload_0 iconst_1 ishl or iload_0 iconst_2 idiv or iload_0 iconst_2 iconst_1 imul idiv [1] & [2] use the smallest stack size |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PHP Regular Expression: Matching All Possible Characters | kruptof | PHP | 3 | May 30th, 2007 6:22 PM |
| 2 dimension array of characters | brad sue | C | 8 | Mar 15th, 2006 9:40 AM |
| Converting ANSI characters to hex for Checksum. | JawaKing00 | C | 4 | Sep 9th, 2005 5:07 AM |
| For loops, a lot, outputting weird characters | layer | C++ | 11 | May 12th, 2005 8:09 PM |